From 026a0d28df8c9e9a2418b49aaaba73c1f73a983a Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Sat, 15 Jul 2017 14:01:27 +0300 Subject: [PATCH] Temporary fix for empty event config JSON --- workers/notificationworker/models_pre_oci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workers/notificationworker/models_pre_oci.py b/workers/notificationworker/models_pre_oci.py index 32389df87..b0703f83e 100644 --- a/workers/notificationworker/models_pre_oci.py +++ b/workers/notificationworker/models_pre_oci.py @@ -8,8 +8,8 @@ def notification(notification_row): """ Converts the given notification row into a notification tuple. """ return Notification(uuid=notification_row.uuid, event_name=notification_row.event.name, method_name=notification_row.method.name, - event_config_dict=json.loads(notification_row.event_config_json), - method_config_dict=json.loads(notification_row.config_json), + event_config_dict=json.loads(notification_row.event_config_json or {}), + method_config_dict=json.loads(notification_row.config_json or {}), repository=Repository(notification_row.repository.namespace_user.username, notification_row.repository.name))