From a8337e754c76ab4c79396a35829f3c411074e3d3 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Mon, 9 Dec 2024 09:15:39 -0800 Subject: [PATCH] bug-1935274: increase message length for BugzillaRestHTTPUnexpectedError --- webapp/crashstats/crashstats/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/crashstats/crashstats/models.py b/webapp/crashstats/crashstats/models.py index c428280a02..7a515f32c6 100644 --- a/webapp/crashstats/crashstats/models.py +++ b/webapp/crashstats/crashstats/models.py @@ -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}" )