🐛 Bug: Fix the bug where channel responses fail but are replied to normally and are not recognized as a request failure.
Browse files
utils.py
CHANGED
@@ -133,7 +133,10 @@ async def error_handling_wrapper(generator):
|
|
133 |
logger.error("error_handling_wrapper [DONE]!")
|
134 |
raise StopAsyncIteration
|
135 |
if "The bot's usage is covered by the developer" in first_item_str:
|
136 |
-
logger.error("error const string
|
|
|
|
|
|
|
137 |
raise StopAsyncIteration
|
138 |
try:
|
139 |
first_item_str = json.loads(first_item_str)
|
|
|
133 |
logger.error("error_handling_wrapper [DONE]!")
|
134 |
raise StopAsyncIteration
|
135 |
if "The bot's usage is covered by the developer" in first_item_str:
|
136 |
+
logger.error("error const string: %s", first_item_str)
|
137 |
+
raise StopAsyncIteration
|
138 |
+
if "process this request due to overload or policy" in first_item_str:
|
139 |
+
logger.error("error const string: %s", first_item_str)
|
140 |
raise StopAsyncIteration
|
141 |
try:
|
142 |
first_item_str = json.loads(first_item_str)
|