From ace52ac3e2b2bec684fe31f4a9a834be25bd8d25 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 25 Apr 2019 14:24:58 +0000 Subject: [PATCH] Exception may be there and still be None, apparently... --- manager/templatetags/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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