Merge pull request #4018 from mbauskar/unicode-decode-fixes
[hotfix] fixes for UnicodeDecodeError while import translation
This commit is contained in:
commit
0b22ead9b4
1 changed files with 1 additions and 0 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue