Skip to content

Instantly share code, notes, and snippets.

@jaredlockhart
Created February 7, 2019 22:34
Show Gist options
  • Save jaredlockhart/21080b396209acf8cf1dc73cc2aec27f to your computer and use it in GitHub Desktop.
Save jaredlockhart/21080b396209acf8cf1dc73cc2aec27f to your computer and use it in GitHub Desktop.
response_data = make_bugzilla_call(settings.BUGZILLA_CREATE_URL, bug_data)
if response_data is not None:
if response_data.get("code", None) == INVALID_USER_ERROR_CODE:
del bug_data["assigned_to"]
response_data = make_bugzilla_call(settings.BUGZILLA_CREATE_URL, bug_data)
return response_data.get("id", None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment