From 7eeca2f567e194b581c2ea9db1aac378e6ef7766 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Thu, 2 May 2013 11:56:36 +0200 Subject: [PATCH] fix debian_build: try to fix correct exception printing --- debian_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/')): -- 2.39.5