Skip to content

Commit

Permalink
On Rainwave API errors, log text instead of json
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjacksn authored Dec 17, 2024
1 parent a8802ee commit d96c980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wormgas/cogs/rainwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ async def _call(self, path: str, params: dict = None):
log.debug(f'{response.status} {content}')
if response.status == 200:
return await response.json()
log.critical(f'Response status is {response.status}')
log.critical(await response.json())
log.critical(f'Response status for {url} is {response.status}')
log.critical(await response.text())
raise RuntimeError

@staticmethod
Expand Down

0 comments on commit d96c980

Please sign in to comment.