diff --git a/endpoints/trigger.py b/endpoints/trigger.py index c4bc63912..13d4803bb 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -548,7 +548,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler): def handle_trigger_request(self, request): payload = request.get_json() - if not 'push' in payload: + if not payload or not 'push' in payload: logger.debug('Skipping BitBucket request due to missing push data in payload') raise SkipRequestException()