Safer handling of return statement inside of OperationLogMiddleware
Enclosing return statement in a try block. If object is unserializable
then return a message.
Closes-bug:
@@ -187,4 +187,7 @@ class OperationLogMiddleware(object):
[up_file.name for up_file in files])
params['file_name'] = filenames
+ try:
return json.dumps(params, ensure_ascii=False)
+ except Exception:
+ return 'Unserializable Object'
