Fix build should_perform for empty JSON
This commit is contained in:
parent
2505de8720
commit
6fffc22b8a
2 changed files with 11 additions and 0 deletions
|
@ -156,6 +156,9 @@ class BaseBuildEvent(NotificationEvent):
|
|||
return None
|
||||
|
||||
def should_perform(self, event_data, notification_data):
|
||||
if not notification_data.event_config_json:
|
||||
return True
|
||||
|
||||
event_config = json.loads(notification_data.event_config_json)
|
||||
ref_regex = event_config.get('ref-regex') or None
|
||||
if ref_regex is None:
|
||||
|
|
Reference in a new issue