From: Mathias Klette Date: Thu, 2 May 2013 09:56:36 +0000 (+0200) Subject: fix debian_build: try to fix correct exception printing X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=7eeca2f567e194b581c2ea9db1aac378e6ef7766;p=profitbricks%2Fjenkins-build-scripts.git fix debian_build: try to fix correct exception printing --- diff --git a/debian_build.py b/debian_build.py index a4ed149..0daa6c9 100755 --- a/debian_build.py +++ b/debian_build.py @@ -631,10 +631,10 @@ if __name__ == '__main__': if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'): try: package_instances = add_package_instances("profitbricks", ENV['JOB_NAME'], ENV['BUILD_NUMBER'], changes_file, version, BUILD_START, BUILD_END) - except Exception, error: + except Exception as error: cmd = ['figlet-figlet', '-t', 'CIDB problem:'] subprocess.check_call(cmd) - logger.error("package instance not added to DB") + logger.error("package instance not added to DB", exc_info=error) exit_error() # only trigger liveboots automatically for builds from master+hotfix/* branches if len(package_instances) > 0 and ( GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/')):