Bug fix to my last change.
diff --git a/planetstack/observer/event_manager.py b/planetstack/observer/event_manager.py
index da3bd51..a885fb5 100644
--- a/planetstack/observer/event_manager.py
+++ b/planetstack/observer/event_manager.py
@@ -75,12 +75,11 @@
self.wake_up()
def random_client_id(self):
- if (self.client_id):
+ try:
return self.client_id
- else:
+ except AttributeError:
self.client_id = base64.urlsafe_b64encode(os.urandom(12))
return self.client_id
-
def run(self):
# This is our unique client id, to be used when firing and receiving events