Merge pull request #357 from coreos-inc/bbnpefix

Fix small NPE in BB trigger code
This commit is contained in:
Jimmy Zelinskie 2015-08-13 12:29:38 -04:00
commit defbfcd5ab

View file

@ -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()