From c426a42ccd9cab3a7c657684b025475b78f8c330 Mon Sep 17 00:00:00 2001 From: liangjingtao Date: Mon, 11 Jul 2016 20:12:36 +0800 Subject: [PATCH] Replace "LOG.exception(_" with "LOG.exception(_LE" Follow http://docs.openstack.org/developer/oslo.i18n/guidelines.html: If a common message is not being used, they should each betreated separately with respect to choosing a marker function.So this patch is to fix it. Change-Id: I07945d82320d9faf6dc452d49722af610330b441 Closes-Bug: #1600788 --- doc/source/examples/usage_i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/examples/usage_i18n.py b/doc/source/examples/usage_i18n.py index 23c54302..5961b755 100644 --- a/doc/source/examples/usage_i18n.py +++ b/doc/source/examples/usage_i18n.py @@ -84,4 +84,4 @@ if __name__ == '__main__': try: raise Exception(_("This is exceptional")) except Exception: - LOG.exception(_("An Exception occurred")) + LOG.exception(_LE("An Exception occurred"))