[flatpak] fix update-checking for version 1.5.X

This commit is contained in:
Vinicius Moreira
2019-10-13 18:14:24 -03:00
parent 0224cf857a
commit 9fa9df04a5
4 changed files with 11 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class FlatpakAsyncDataLoader(Thread):
try:
res = self.http_client.get('{}/apps/{}'.format(FLATHUB_API_URL, self.app.id))
if res.status_code == 200 and res.text:
if res and res.text:
data = res.json()
if not self.app.version: