Make absolutely sure to skip requests without a valid payload

This commit is contained in:
Joseph Schorr 2014-06-19 17:20:43 -04:00
parent 2bf12996f5
commit 46d1dc98ce

View file

@ -315,7 +315,7 @@ class GithubBuildTrigger(BuildTrigger):
def handle_trigger_request(self, request, auth_token, config):
payload = request.get_json()
if not payload or not 'head_commit' in payload:
if not payload or payload.get('head_commit') is None:
raise SkipRequestException()
if 'zen' in payload: