summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik M. Bray <embray@stsci.edu>2013-03-05 11:03:34 -0500
committerErik M. Bray <embray@stsci.edu>2013-03-05 11:03:34 -0500
commita44c84b90ac254d74235c0d2327c17f542c5fcbe (patch)
tree27fcce82e8df8becd4ceacda2e114e6eaceb3d5b
parent45ed5ce389e14f3963e1d0cdecbb4ef347e0ff1e (diff)
downloadpbr-a44c84b90ac254d74235c0d2327c17f542c5fcbe.tar.gz
Fix 'except as' statements that were breaking things in Python 2.5
-rw-r--r--pbr/d2to1/util.py4
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)