Index: sitescripts/notifications/web/notification.py |
=================================================================== |
--- a/sitescripts/notifications/web/notification.py |
+++ b/sitescripts/notifications/web/notification.py |
@@ -67,7 +67,7 @@ |
return notification |
def _can_be_shown(notification): |
- return "title" in notification and "message" in notification |
+ return notification.get("title", None) and notification.get("message", None) |
def _generate_version(groups): |
version = time.strftime("%Y%m%d%H%M", time.gmtime()) |