From ca48efa5be6313a2fb528507887089d19cdee897 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 11 Aug 2023 22:52:29 +1000 Subject: [PATCH] Upgrade SQLAlchemy to v2.0.18 and fix async_timeout warning --- gns3server/controller/compute.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index 40172aaa..c6cb4609 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -503,7 +503,7 @@ class Compute: return self._getUrl(path) async def _run_http_query(self, method, path, data=None, timeout=20, raw=False): - with async_timeout.timeout(timeout): + async with async_timeout.timeout(delay=timeout): url = self._getUrl(path) headers = {"content-type": "application/json"} chunked = None diff --git a/requirements.txt b/requirements.txt index d9d93fb6..cbd126c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ sentry-sdk==1.29.2,<1.30 psutil==5.9.5 distro>=1.8.0 py-cpuinfo==9.0.0 -sqlalchemy==2.0.17 +sqlalchemy==2.0.18 aiosqlite==0.19.0 alembic==1.11.2 passlib[bcrypt]==1.7.4