Browse Source

HUE-1907 [impala] Date result fields are not jsonifiable

Difficult to reproduce/track the root cause.
Might be releated to a funky Chrome
Romain Rigaux 11 years ago
parent
commit
a93da786e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/beeswax/src/beeswax/api.py

+ 1 - 1
apps/beeswax/src/beeswax/api.py

@@ -68,7 +68,7 @@ def error_handler(view_fn):
         'message': message,
         '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
         response['status'] = 2 # Frontend will not display this type of error
 
 
       return HttpResponse(json.dumps(response), mimetype="application/json", status=200)
       return HttpResponse(json.dumps(response), mimetype="application/json", status=200)