bitbucket2: Add additional debugging info about unsupported keys.

This commit is contained in:
Tomasz Kolek 2016-12-29 16:56:16 +01:00 committed by Tim Abbott
parent 2b0a7fd0ba
commit 6d1cb44bd4
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def get_type(request, payload):
action = action.group('action') action = action.group('action')
if action in PULL_REQUEST_SUPPORTED_ACTIONS: if action in PULL_REQUEST_SUPPORTED_ACTIONS:
return pull_request_template.format(action) return pull_request_template.format(action)
raise UnknownTriggerType() raise UnknownTriggerType("We don't support {} event type".format(event_key))
def get_body_based_on_type(type): def get_body_based_on_type(type):
# type: (str) -> Any # type: (str) -> Any