From a44c84b90ac254d74235c0d2327c17f542c5fcbe Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Tue, 5 Mar 2013 11:03:34 -0500 Subject: Fix 'except as' statements that were breaking things in Python 2.5 --- 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