Add raw_response var for quick debug purposes

This commit is contained in:
DevilXD committed 2022-10-28 22:05:15 +02:00
1 parent 427e317755
commit d8958d746c
1 file changed
+1 -1
+1 -1
View File
@@ -1025,7 +1025,7 @@ class Twitch:
logger.debug(f"Response: {response.status}: {response}")
if response.status < 500:
# pre-read the response to avoid getting errors outside of the context manager
await response.read()
raw_response = await response.read() # noqa
yield response
return
self.print(_("error", "site_down").format(seconds=round(delay)))