@@ -197,7 +197,7 @@ def post(self, database):
197197 200 ,
198198 headers )
199199 except Exception as e :
200- result = {'success' : False , 'reason' : e }
200+ result = {'success' : False , 'reason' : str ( e ) }
201201 headers = {'ContentType' : 'application/json' }
202202 return make_response (jsonify (result ),
203203 500 ,
@@ -220,7 +220,7 @@ def post(self, database):
220220 headers = {'ContentType' : 'application/json' }
221221 return make_response (jsonify (result ), 200 , headers )
222222 except Exception as e :
223- result = {'success' : False , 'reason' : e }
223+ result = {'success' : False , 'reason' : str ( e ) }
224224 headers = {'ContentType' : 'application/json' }
225225 return make_response (jsonify (result ), 500 , headers )
226226
@@ -313,7 +313,7 @@ def post(self, database):
313313 headers ["Content-Type" ] = "application/json"
314314 return make_response (jsonify (result ), 200 , headers )
315315 except Exception as e :
316- result = {'success' : False , 'reason' : e }
316+ result = {'success' : False , 'reason' : str ( e ) }
317317 headers = {'ContentType' : 'application/json' }
318318 return make_response (jsonify (result ), 500 , headers )
319319
0 commit comments