we have a problem
Browse files
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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
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:
|