From eb9888d1ce05f9a6a8e88b15fb414a602dfba8b0 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 30 Oct 2019 15:18:19 +0100 Subject: [PATCH] Fix wo update --- wo/core/download.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wo/core/download.py b/wo/core/download.py index da4fe4f..c40e8c9 100644 --- a/wo/core/download.py +++ b/wo/core/download.py @@ -47,7 +47,6 @@ class WODownload(): except requests.RequestException as e: Log.debug(self, str(e)) Log.error(self, "Unable to query GitHub API") - else: - github_json = req.json() - github_release = github_json["tag_name"] - return github_release + + github_json = req.json() + return github_json["tag_name"]