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

erp5_sql_browser: fix

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