|
|
@@ -68,7 +68,7 @@ def error_handler(view_fn):
|
|
|
'message': message,
|
|
|
}
|
|
|
|
|
|
- if 'database is locked' in message or 'Invalid query handle' in message:
|
|
|
+ if 'database is locked' in message or 'Invalid query handle' in message or 'not JSON serializable' in message:
|
|
|
response['status'] = 2 # Frontend will not display this type of error
|
|
|
|
|
|
return HttpResponse(json.dumps(response), mimetype="application/json", status=200)
|