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): ...@@ -194,7 +194,7 @@ class Application(QObject):
@asyncify @asyncify
async def get_last_version(self): async def get_last_version(self):
try: try:
with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
with aiohttp.Timeout(15): with aiohttp.Timeout(15):
response = await session.get("https://api.github.com/repos/duniter/sakia/releases", response = await session.get("https://api.github.com/repos/duniter/sakia/releases",
proxy=self.parameters.proxy()) proxy=self.parameters.proxy())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment