Handle unknown pivotal events, and log

(imported from commit f177d7d0d8f4c09b2b94bb23973cd90ca8930f3b)
This commit is contained in:
Leo Franchi
2013-09-23 12:50:22 -04:00
committed by Zev Benjamin
parent 963b62873d
commit edbde0b78b

View File

@@ -328,6 +328,9 @@ def api_pivotal_webhook(request):
estimate,
issue_desc,
more_info)
else:
logging.warning("Received Pivotal event we did not understand: %s" % (event_type, ))
return json_success()
except AttributeError:
return json_error("Failed to extract data from Pivotal XML response")