From e07f94481e63680253c93a4b1043df53ff076247 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Tue, 30 Apr 2013 16:56:51 +0200 Subject: [PATCH] fix: use try and except as intended --- common_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_code.py b/common_code.py index cba42eb..19a89b2 100755 --- a/common_code.py +++ b/common_code.py @@ -43,7 +43,7 @@ ENV = os.environ ENV.update({'ARGV': ' '.join(sys.argv)}) try: ENV.update({'NO_UPLOAD': ENV['NO_UPLOAD']}) -else: +except KeyError as e: ENV.update({'NO_UPLOAD': False}) BIN_GIT = '/usr/bin/git' -- 2.39.5