diff --git a/pyproject.toml b/pyproject.toml index 1432ab8..81bda6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mvg" -version = "1.2.0" +version = "1.2.1" description = "An unofficial interface to timetable information of the Münchner Verkehrsgesellschaft (MVG)." readme = "README.md" diff --git a/src/mvg/mvgapi.py b/src/mvg/mvgapi.py index f310742..b045eb7 100644 --- a/src/mvg/mvgapi.py +++ b/src/mvg/mvgapi.py @@ -117,7 +117,7 @@ async def __api(base: Base, endpoint: Endpoint | tuple[str, list[str]], args: di url.set(query_params=args) try: - async with aiohttp.ClientSession() as session, session.get( + async with aiohttp.ClientSession(trust_env=True) as session, session.get( url.url, ) as resp: if resp.status != HTTPStatus.OK: