From: Mathias Klette Date: Tue, 30 Apr 2013 14:56:51 +0000 (+0200) Subject: fix: use try and except as intended X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e07f94481e63680253c93a4b1043df53ff076247;p=profitbricks%2Fjenkins-build-scripts.git fix: use try and except as intended --- 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'