Skip to content
Snippets Groups Projects
Commit b1be4520 authored by inso's avatar inso
Browse files

Get last version coroutine

parent abca5bc5
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ class Application(QObject):
@asyncify
async def get_last_version(self):
try:
with aiohttp.ClientSession() as session:
async with aiohttp.ClientSession() as session:
with aiohttp.Timeout(15):
response = await session.get("https://api.github.com/repos/duniter/sakia/releases",
proxy=self.parameters.proxy())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment