git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9faf7b0
)
Bug fix to my last change.
author
Sapan Bhatia
<gwsapan@gmail.com>
Wed, 9 Oct 2013 14:56:06 +0000
(10:56 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Wed, 9 Oct 2013 14:56:06 +0000
(10:56 -0400)
planetstack/observer/event_manager.py
patch
|
blob
|
history
diff --git
a/planetstack/observer/event_manager.py
b/planetstack/observer/event_manager.py
index
da3bd51
..
a885fb5
100644
(file)
--- a/
planetstack/observer/event_manager.py
+++ b/
planetstack/observer/event_manager.py
@@
-75,12
+75,11
@@
class EventListener:
self.wake_up()
def random_client_id(self):
-
if (self.client_id)
:
+
try
:
return self.client_id
- e
lse
:
+ e
xcept 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