Mbonea commited on
Commit
e1a5ac8
·
1 Parent(s): 263c778
Files changed (1) hide show
  1. App/Chat/PoeChatrouter.py +1 -1
App/Chat/PoeChatrouter.py CHANGED
@@ -55,7 +55,7 @@ async def fetch_predictions(data):
55
  timeout=5,
56
  proxy=str(p),
57
  ) as response:
58
- if response.status == 403:
59
  continue
60
  proxy = str(p)
61
  return await response.json()
 
55
  timeout=5,
56
  proxy=str(p),
57
  ) as response:
58
+ if str(response.status).startswith("4"):
59
  continue
60
  proxy = str(p)
61
  return await response.json()