diff --git a/manager/templatetags/notifications.py b/manager/templatetags/notifications.py index adbfa27..62c3c9c 100644 --- a/manager/templatetags/notifications.py +++ b/manager/templatetags/notifications.py @@ -17,7 +17,7 @@ def getNotifications(context, login=False): if notification.on_login or not login: notifications.append(notification) - if "exception" in context.dicts[3]: + if "exception" in context.dicts[3] and context.dicts[3]["exception"]: exception = Notification() exception.status = 2 exception.text = context.dicts[3]["exception"].human