Skip to content

Commit

Permalink
Merge pull request #658 from OpenKnowledgeMaps/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
chreman authored Jun 17, 2022
2 parents f43a416 + 740f8ed commit 8027432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/workers/api/src/apis/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def post(self, format):
headers)
except Exception as e:
export_ns.logger.error(e)
result = {'success': False, 'reason': e}
result = {'success': False, 'reason': str(e)}
headers = {'ContentType': 'application/json'}
return make_response(jsonify(result),
500,
Expand Down
6 changes: 3 additions & 3 deletions server/workers/persistence/src/apis/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def post(self, database):
200,
headers)
except Exception as e:
result = {'success': False, 'reason': e}
result = {'success': False, 'reason': str(e)}
headers = {'ContentType': 'application/json'}
return make_response(jsonify(result),
500,
Expand All @@ -220,7 +220,7 @@ def post(self, database):
headers = {'ContentType': 'application/json'}
return make_response(jsonify(result), 200, headers)
except Exception as e:
result = {'success': False, 'reason': e}
result = {'success': False, 'reason': str(e)}
headers = {'ContentType': 'application/json'}
return make_response(jsonify(result), 500, headers)

Expand Down Expand Up @@ -313,7 +313,7 @@ def post(self, database):
headers["Content-Type"] = "application/json"
return make_response(jsonify(result), 200, headers)
except Exception as e:
result = {'success': False, 'reason': e}
result = {'success': False, 'reason': str(e)}
headers = {'ContentType': 'application/json'}
return make_response(jsonify(result), 500, headers)

Expand Down

0 comments on commit 8027432

Please sign in to comment.