Mbonea commited on
Commit
a2f055e
·
1 Parent(s): 29786d0

we have a problem

Browse files
Files changed (1) hide show
  1. App/Chat/PoeChatrouter.py +8 -5
App/Chat/PoeChatrouter.py CHANGED
@@ -23,11 +23,14 @@ class InputData(BaseModel):
23
  async def fetch_predictions(data):
24
  proxy_set = proxy != ""
25
  if not proxy_set:
26
- proxies = fetcher.get(
27
- limit=10,
28
- protocols=[Protocols.HTTP],
29
- anonymities=[Anonymities.ELITE],
30
- )
 
 
 
31
 
32
  async with ClientSession() as session:
33
  for p in proxies:
 
23
  async def fetch_predictions(data):
24
  proxy_set = proxy != ""
25
  if not proxy_set:
26
+ try:
27
+ proxies = fetcher.get(
28
+ limit=10,
29
+ protocols=[Protocols.HTTP],
30
+ anonymities=[Anonymities.ELITE],
31
+ )
32
+ except Exception as e:
33
+ print(e)
34
 
35
  async with ClientSession() as session:
36
  for p in proxies: