Merge pull request #4018 from mbauskar/unicode-decode-fixes

[hotfix] fixes for UnicodeDecodeError while import translation
This commit is contained in:
Rushabh Mehta 2017-08-31 13:40:47 +05:30 committed by GitHub
commit 0b22ead9b4

View file

@ -453,6 +453,7 @@ def get_server_messages(app):
if dontwalk in folders: folders.remove(dontwalk)
for f in files:
f = frappe.as_unicode(f)
if f.endswith(".py") or f.endswith(".html") or f.endswith(".js"):
messages.extend(get_messages_from_file(os.path.join(basepath, f)))