diff options
author | Erik Bray <embray@stsci.edu> | 2013-03-05 21:12:14 +0000 |
---|---|---|
committer | Erik Bray <embray@stsci.edu> | 2013-03-05 21:12:14 +0000 |
commit | 6618d1f14bffd59d4e8168777c0378869bc66442 (patch) | |
tree | 27fcce82e8df8becd4ceacda2e114e6eaceb3d5b | |
parent | 4f474beebcc04ba2c790c5729c4e6b3b89668cce (diff) | |
download | pbr-6618d1f14bffd59d4e8168777c0378869bc66442.tar.gz |
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
-rw-r--r-- | pbr/d2to1/util.py | 4 |
1 files 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) |