Commit 0b70d293 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

erp5_sql_browser: fix

parent 302a2021
...@@ -13,10 +13,10 @@ try: ...@@ -13,10 +13,10 @@ try:
except Exception, e: except Exception, e:
response.setStatus(500) response.setStatus(500)
try: try:
response.write(str(e[1])) data = e[1]
except Exception: except IndexError:
response.write(str(e)) data = e
return return str(data)
# handle non JSON serializable data # handle non JSON serializable data
new_data = [data[0]] new_data = [data[0]]
......
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