Add raw_response var for quick debug purposes
This commit is contained in:
1 parent
427e317755
commit
d8958d746c
1 file changed
+1
-1
@@ -1025,7 +1025,7 @@ class Twitch:
|
|||||||
logger.debug(f"Response: {response.status}: {response}")
|
logger.debug(f"Response: {response.status}: {response}")
|
||||||
if response.status < 500:
|
if response.status < 500:
|
||||||
# pre-read the response to avoid getting errors outside of the context manager
|
# pre-read the response to avoid getting errors outside of the context manager
|
||||||
await response.read()
|
raw_response = await response.read() # noqa
|
||||||
yield response
|
yield response
|
||||||
return
|
return
|
||||||
self.print(_("error", "site_down").format(seconds=round(delay)))
|
self.print(_("error", "site_down").format(seconds=round(delay)))
|
||||||
|
|||||||
Reference in new issue
Block a user