Exception may be there and still be None, apparently...
This commit is contained in:
parent
24cae8a01b
commit
ace52ac3e2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue