summaryrefslogtreecommitdiffstats
path: root/openstack/common/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/exception.py')
-rw-r--r--openstack/common/exception.py2
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'))