Skip to content

Commit

Permalink
Merge pull request #264 from hotosm/hotfix/security-patch
Browse files Browse the repository at this point in the history
Patch : Security - Don't return task failure traceback to user
  • Loading branch information
kshitijrajsharma authored Aug 9, 2024
2 parents 1b94280 + 5c18b6f commit 929a58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion API/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def get_task_status(
if task_result.status == "SUCCESS":
task_response_result = task_result.result
if task_result.state != "SUCCESS":
task_response_result = str(task_result.info)
task_response_result = "N/A" # TODO : Make sure no imp information is popping out outside of the API
# task_response_result = str(task_result.info)

result = {
"id": task_id,
Expand Down

0 comments on commit 929a58b

Please sign in to comment.