Commit e1e460d0 authored by Jérome Perrin's avatar Jérome Perrin

erp5_administration: do not fail when checking python scripts with non ascii

parent 0d77a6d1
...@@ -167,7 +167,7 @@ def checkPythonSourceCodeAsJSON(self, data): ...@@ -167,7 +167,7 @@ def checkPythonSourceCodeAsJSON(self, data):
else: else:
body = data['code'] body = data['code']
message_list = checkPythonSourceCode(body) message_list = checkPythonSourceCode(body.encode('utf8'))
for message_dict in message_list: for message_dict in message_list:
if is_python_script: if is_python_script:
message_dict['row'] = message_dict['row'] - 2 message_dict['row'] = message_dict['row'] - 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment