diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-04-22 13:35:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-22 13:35:28 +0000 |
| commit | 2492387789ece466e19ee1a76ce5f574bfc123e6 (patch) | |
| tree | 206b84ddf2e326980b77d74a4c8633a7034cd091 /openstack/common/exception.py | |
| parent | 572bb9ddb720c7cf948906c72be30b022ded0df0 (diff) | |
| parent | 120ddeff7e1b8956fe35a7a39fae87ddcac8301c (diff) | |
| download | oslo-2492387789ece466e19ee1a76ce5f574bfc123e6.tar.gz oslo-2492387789ece466e19ee1a76ce5f574bfc123e6.tar.xz oslo-2492387789ece466e19ee1a76ce5f574bfc123e6.zip | |
Merge "Improve Python 3.x compatibility"
Diffstat (limited to 'openstack/common/exception.py')
| -rw-r--r-- | openstack/common/exception.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/exception.py b/openstack/common/exception.py index 5d0998c..a645588 100644 --- a/openstack/common/exception.py +++ b/openstack/common/exception.py @@ -98,7 +98,7 @@ def wrap_exception(f): def _wrap(*args, **kw): try: return f(*args, **kw) - except Exception, e: + except Exception as e: if not isinstance(e, Error): #exc_type, exc_value, exc_traceback = sys.exc_info() logging.exception(_('Uncaught exception')) |
