raise not implemented

This commit is contained in:
Matthias 2021-12-02 10:54:04 +01:00
parent 162d4347e7
commit 65d5ed1bdf
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -122,6 +122,8 @@ def trigger_notifaction(obj, entry_name=None, obj_ref='pk', receivers=None, rece
logger.info(f"Triggering method '{method.method_name}'") logger.info(f"Triggering method '{method.method_name}'")
try: try:
deliver_notification(method, obj, entry_name, receivers, notification_context) deliver_notification(method, obj, entry_name, receivers, notification_context)
except NotImplementedError as error:
raise error
except Exception as error: except Exception as error:
logger.error(error) logger.error(error)