Skip to content

Commit

Permalink
🐛 Bug: Fix the bug where channel responses fail but are replied to no…
Browse files Browse the repository at this point in the history
…rmally and are not recognized as a request failure.
  • Loading branch information
yym68686 committed Oct 7, 2024
1 parent 74dc0c0 commit 8cf0555
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ async def error_handling_wrapper(generator):
logger.error("error_handling_wrapper [DONE]!")
raise StopAsyncIteration
if "The bot's usage is covered by the developer" in first_item_str:
logger.error("error const string!")
logger.error("error const string: %s", first_item_str)
raise StopAsyncIteration
if "process this request due to overload or policy" in first_item_str:
logger.error("error const string: %s", first_item_str)
raise StopAsyncIteration
try:
first_item_str = json.loads(first_item_str)
Expand Down

0 comments on commit 8cf0555

Please sign in to comment.