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)