Skip to content

Commit

Permalink
bug-1935274: increase message length for BugzillaRestHTTPUnexpectedEr…
Browse files Browse the repository at this point in the history
…ror (#6833)
  • Loading branch information
relud authored Dec 10, 2024
1 parent 4f56bfe commit 4e6d51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/crashstats/crashstats/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,8 @@ def get(self, bugs, **kwargs):
if "bugs" not in data:
# We know the payload is JSON, but we don't know what shape it is--could
# be an array or an object. We know it doesn't have sensitive data in
# it, so let's dump to a string and truncate that to 100 characters.
payload_data = response.content[:100]
# it, so let's dump to a string and truncate that to 200 characters.
payload_data = response.content[:200]
raise BugzillaRestHTTPUnexpectedError(
f"status code: {response.status_code}, payload: {payload_data!r}"
)
Expand Down

0 comments on commit 4e6d51c

Please sign in to comment.