From 6618d1f14bffd59d4e8168777c0378869bc66442 Mon Sep 17 00:00:00 2001 From: Erik Bray Date: Tue, 5 Mar 2013 21:12:14 +0000 Subject: Fix 'except as' statements that were breaking things in Python 2.5 git-svn-id: https://svn.stsci.edu/svn/ssb/stsci_python/d2to1/trunk@23560 fe389314-cf27-0410-b35b-8c050e845b92 --- pbr/d2to1/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbr/d2to1/util.py b/pbr/d2to1/util.py index 51ba2b2..a95adcf 100644 --- a/pbr/d2to1/util.py +++ b/pbr/d2to1/util.py @@ -173,7 +173,7 @@ def cfg_to_args(path='setup.cfg'): hook_fn = resolve_name(hook) try : hook_fn(config) - except Exception as e: + except Exception, e: log.error('setup hook %s raised exception: %s\n' % (hook, e)) log.error(traceback.format_exc()) @@ -492,7 +492,7 @@ def run_command_hooks(cmd_obj, hook_kind): try : hook_obj(cmd_obj) - except Exception as e : + except Exception, e : log.error('hook %s raised exception: %s\n' % (hook, e)) log.error(traceback.format_exc()) sys.exit(1) -- cgit v1.2.1