From 58fe6c03102e0e51f3a279242fb08b023d0248fa Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sun, 6 Sep 2020 12:45:34 +0100 Subject: [PATCH] updates --- komrade/backend/mazes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komrade/backend/mazes.py b/komrade/backend/mazes.py index 1c87ba4..f6c50e7 100644 --- a/komrade/backend/mazes.py +++ b/komrade/backend/mazes.py @@ -21,7 +21,7 @@ async def tor_request_in_python_async(url): with tor.get_guard() as guard: adapter = TorHttpAdapter(guard, 3, retries=RETRIES) - with requests_async.Session() as s: + with async requests_async.Session() as s: s.headers.update({'User-Agent': 'Mozilla/5.0'}) s.mount('http://', adapter) s.mount('https://', adapter)