summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/bug-fix-exception1
-rw-r--r--src/leap/common/events/client.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changes/bug-fix-exception b/changes/bug-fix-exception
new file mode 100644
index 0000000..866c39a
--- /dev/null
+++ b/changes/bug-fix-exception
@@ -0,0 +1 @@
+ o Correct use of CallbackAlreadyRegistered exception
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)