mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 05:20:16 +02:00
Fix null error when joining strings
This commit is contained in:
parent
26354751e8
commit
c24c1f41ea
@ -13,7 +13,8 @@ class NotificationHandler(logging.Handler):
|
||||
notif.title = "%s [%s:%s]" % (record.levelname, record.funcName, record.lineno)
|
||||
notif.level = str([item[0] for item in Notification.LEVEL_CHOICES if item[1] == record.levelname][0])
|
||||
message = record.getMessage()
|
||||
message = message + "\n\n"
|
||||
message = message + record.exc_text
|
||||
if record.exc_text:
|
||||
message = message + "\n\n"
|
||||
message = message + record.exc_text
|
||||
notif.message = message
|
||||
notif.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user