if HookedMessagingEvents.has_key(event):
try:
HookedMessagingEventsCallbacks[event].remove(callback)
except Exception, e:
raise MirPy.NoSuchCallbackForEventError("The event '%s' has no callback '%s'" % (event, callback))
else:
raise MirPy.NoSuchEventError("The event '%s' was not found." % event)
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "messaging.pyx", line 118, in messaging.HookMessagingEvent
TypeError: exceptions must be strings, classes, or instances, not NoSuchEventError