Exception may be there and still be None, apparently...

This commit is contained in:
Kumi 2019-04-25 14:24:58 +00:00
parent 24cae8a01b
commit ace52ac3e2

View file

@ -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