summaryrefslogtreecommitdiff
path: root/src/leap/common/events
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-09-03 15:51:54 +0200
committerKali Kaneko <kali@leap.se>2013-09-03 15:55:12 +0200
commitf3b3982a0e53b1ff2cfc7fa9c3288e3156bfdd55 (patch)
tree67cdfa48108b2a497aaae753dfc532e41f21f911 /src/leap/common/events
parent03e5e612103bf129602032065cfe5917b8de8be5 (diff)
Fix Exception use
Diffstat (limited to 'src/leap/common/events')
-rw-r--r--src/leap/common/events/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/common/events/client.py b/src/leap/common/events/client.py
index 4ae9bff..816cec1 100644
--- a/src/leap/common/events/client.py
+++ b/src/leap/common/events/client.py
@@ -120,7 +120,7 @@ def register(signal, callback, uid=None, replace=False, reqcbk=None,
cbklist = registered_callbacks[signal]
if uid and filter(lambda (x, y): x == uid, cbklist):
if not replace:
- raise CallbackAlreadyRegisteredException()
+ raise CallbackAlreadyRegistered()
else:
registered_callbacks[signal] = filter(lambda(x, y): x != uid,
cbklist)