From b1be45201d3eb39c10c5433fe48a537e5042c681 Mon Sep 17 00:00:00 2001
From: inso <insomniak.fr@gmaiL.com>
Date: Sat, 21 Oct 2017 09:48:40 +0200
Subject: [PATCH] Get last version coroutine

---
 src/sakia/app.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sakia/app.py b/src/sakia/app.py
index 21d29b9c..287996e2 100644
--- a/src/sakia/app.py
+++ b/src/sakia/app.py
@@ -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())
-- 
GitLab