Fix Exception use
[leap_pycommon.git] / src / leap / common / events / client.py
index 4ae9bff..816cec1 100644 (file)
@@ -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)