summaryrefslogtreecommitdiffstats
path: root/openstack/common/excutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/excutils.py')
-rw-r--r--openstack/common/excutils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstack/common/excutils.py b/openstack/common/excutils.py
index 5dd4830..c518310 100644
--- a/openstack/common/excutils.py
+++ b/openstack/common/excutils.py
@@ -24,6 +24,8 @@ import logging
import sys
import traceback
+from openstack.common.gettextutils import _
+
@contextlib.contextmanager
def save_and_reraise_exception():
@@ -43,7 +45,7 @@ def save_and_reraise_exception():
try:
yield
except Exception:
- logging.error('Original exception being dropped: %s' %
- (traceback.format_exception(type_, value, tb)))
+ logging.error(_('Original exception being dropped: %s'),
+ traceback.format_exception(type_, value, tb))
raise
raise type_, value, tb