Remove _LE variable

log translation has been removed [1]. This patch fixes
python-searchlightclient by removing remaining _LE variable from
i18n.

[1] 4f237553e9

Change-Id: I923adc33992baa0c6f0e41fd1d6ae0d951ecde7f
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
Story: #2006440
Task: #36355
This commit is contained in:
Trinh Nguyen
2019-09-26 23:03:14 +09:00
parent de228e7b38
commit 3111ed22a9

View File

@@ -31,7 +31,6 @@ import yaml
from searchlightclient import exc
from searchlightclient.i18n import _
from searchlightclient.i18n import _LE
LOG = logging.getLogger(__name__)
@@ -312,7 +311,7 @@ def get_response_body(resp):
try:
body = resp.json()
except ValueError:
LOG.error(_LE('Could not decode response body as JSON'))
LOG.error('Could not decode response body as JSON')
else:
body = None
return body