From 63fa412882d7b1dc29aecc6f61d494a667034aad Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 7 Jul 2017 15:18:05 +0200 Subject: Fix build_release.py --- scripts/dev/build_release.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 6a6adb5bd..bb5733cad 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -297,6 +297,7 @@ def read_github_token(): token_file = os.path.join(os.path.expanduser('~'), '.gh_token') with open(token_file, encoding='ascii') as f: token = f.read().strip() + return token def github_upload(artifacts, tag): @@ -349,7 +350,7 @@ def main(): if args.upload is not None: # Fail early when trying to upload without github3 installed # or without API token - import github3 + import github3 # pylint: disable=unused-variable read_github_token() if os.name == 'nt': -- cgit v1.2.3-54-g00ecf