diff options
| author | Dirk Mueller <dirk@dmllr.de> | 2013-06-07 15:50:39 +0200 |
|---|---|---|
| committer | Dirk Mueller <dirk@dmllr.de> | 2013-06-07 15:50:39 +0200 |
| commit | 2f013887c20310c522f9494ed854554e6f8c7aa4 (patch) | |
| tree | 1f983ff5dcf2f1a2b3dc8b5e896838ef2ccd5cba /openstack/common/processutils.py | |
| parent | 5ce33b2adcf2477fe1192d7061cf49a8ab1a44a2 (diff) | |
| download | oslo-2f013887c20310c522f9494ed854554e6f8c7aa4.tar.gz oslo-2f013887c20310c522f9494ed854554e6f8c7aa4.tar.xz oslo-2f013887c20310c522f9494ed854554e6f8c7aa4.zip | |
Use Python 3.x compatible except construct
Per (proposed) Hacking H203 check, always use the
except x as y: construct, which works with any
Python version >= 2.6, including Python 3.x.
Change-Id: I46028647d5a2a53ba8e9ce4d2e8fc6e71850fdae
Diffstat (limited to 'openstack/common/processutils.py')
| -rw-r--r-- | openstack/common/processutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/processutils.py b/openstack/common/processutils.py index 1aa1335..02cfada 100644 --- a/openstack/common/processutils.py +++ b/openstack/common/processutils.py @@ -203,7 +203,7 @@ def trycmd(*args, **kwargs): try: out, err = execute(*args, **kwargs) failed = False - except ProcessExecutionError, exn: + except ProcessExecutionError as exn: out, err = '', str(exn) failed = True |
