Fix spurious Zendesk warnings.

We were logging warnings about group names when no group names were
requested. This will clean up Splunk a little bit.
This commit is contained in:
Peter Fogg
2015-12-09 10:01:14 -05:00
parent 1f2f3de4a2
commit 2d40c66361

View File

@@ -233,7 +233,7 @@ def _record_feedback_in_zendesk(
new_ticket['ticket']['group_id'] = group['id']
try:
ticket_id = zendesk_api.create_ticket(new_ticket)
if group is None:
if group_name is not None and group is None:
# Support uses Zendesk groups to track tickets. In case we
# haven't been able to correctly group this ticket, log its ID
# so it can be found later.