From e3558537b8d7ee71a33c52ff256f78b84f107343 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 28 Oct 2019 07:11:04 +0100 Subject: [PATCH] Additional fix for requests --- wo/cli/plugins/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wo/cli/plugins/update.py b/wo/cli/plugins/update.py index ce901ab..6fac40c 100644 --- a/wo/cli/plugins/update.py +++ b/wo/cli/plugins/update.py @@ -47,14 +47,14 @@ class WOUpdateController(CementBaseController): wo_current = WOVar.wo_version try: - wo_github_latest = get( + wo_github_latest = requests.get( 'https://api.github.com/repos/WordOps/WordOps/releases/latest', timeout=(5, 30)).json() - except RequestException: + except requests.RequestException: Log.debug( self, "Request to GitHub API failed. " "Switching to Gitea instance") - wo_github_latest = get( + wo_github_latest = requests.get( 'https://git.virtubox.net/api/v1/repos/virtubox/WordOps/tags', timeout=(5, 30)).json() wo_latest = wo_github_latest[0]["name"]