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
This commit is contained in:
liangjingtao 2016-07-11 20:12:36 +08:00
parent 5082d92e51
commit c426a42ccd
1 changed files with 1 additions and 1 deletions

View File

@ -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"))