From 6c6683657ec7a1600b32ec19b394114d73691ffd Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Dec 2021 03:51:40 +0100 Subject: [PATCH] remove debug prints --- InvenTree/common/notifications.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index 93969b163d..cd0cbdeedd 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -176,19 +176,13 @@ def trigger_notifaction(obj, category=None, obj_ref='pk', targets=None, target_f # Collect possible methods delivery_methods = inheritors(NotificationMethod) - # TODO remove -> this is for debugging the delivery method runfs - if settings.TESTING: - print(delivery_methods) - for method in [a for a in delivery_methods if a not in [SingleNotificationMethod, BulkNotificationMethod]]: logger.info(f"Triggering method '{method.METHOD_NAME}'") try: deliver_notification(method, obj, category, targets, context) except NotImplementedError as error: - print('NotImplementedError') raise error except Exception as error: - print(error) logger.error(error) # Set delivery flag