diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-29 23:06:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-29 23:06:13 +0000 |
| commit | 1fd7694e96da4c7e461d3c966fab1e81ee57c315 (patch) | |
| tree | f19487d48afc96acd72dc7bb95bb951e0fc229a2 /openstack/common/exception.py | |
| parent | cd176d1147b19547fe4deb3299216aeaa1ca535b (diff) | |
| parent | 6d102bcf0cbacb1d37eec20c4d318e14724a056d (diff) | |
| download | oslo-1fd7694e96da4c7e461d3c966fab1e81ee57c315.tar.gz oslo-1fd7694e96da4c7e461d3c966fab1e81ee57c315.tar.xz oslo-1fd7694e96da4c7e461d3c966fab1e81ee57c315.zip | |
Merge "Provide i18n to those messages without _()"
Diffstat (limited to 'openstack/common/exception.py')
| -rw-r--r-- | openstack/common/exception.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack/common/exception.py b/openstack/common/exception.py index 4866de2..fa06d6a 100644 --- a/openstack/common/exception.py +++ b/openstack/common/exception.py @@ -21,6 +21,8 @@ Exceptions common to OpenStack projects import logging +from openstack.common.gettextutils import _ + class Error(Exception): def __init__(self, message=None): @@ -97,7 +99,7 @@ def wrap_exception(f): except Exception, e: if not isinstance(e, Error): #exc_type, exc_value, exc_traceback = sys.exc_info() - logging.exception('Uncaught exception') + logging.exception(_('Uncaught exception')) #logging.error(traceback.extract_stack(exc_traceback)) raise Error(str(e)) raise |
