Skip to content

Commit

Permalink
Upgrade SQLAlchemy to v2.0.18 and fix async_timeout warning
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Aug 11, 2023
1 parent b0657b3 commit ca48efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gns3server/controller/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def get_url(self, path):
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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca48efa

Please sign in to comment.