fix(translate): #5906 via CodeTriage

This commit is contained in:
Rushabh Mehta 2018-08-30 10:27:52 +05:30
parent 5944ba312a
commit 22934b4e8c

View file

@ -507,7 +507,7 @@ def extract_messages_from_code(code, is_py=False):
:param code: code from which translatable files are to be extracted
:param is_py: include messages in triple quotes e.g. `_('''message''')`"""
try:
code = render_include(code)
code = frappe.as_unicode(render_include(code))
except (TemplateError, ImportError, InvalidIncludePath):
# Exception will occur when it encounters John Resig's microtemplating code
pass