Skip to content

Commit

Permalink
More small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinnas committed Sep 9, 2024
1 parent 7c8efac commit 94260ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/back-end/src/routes/workspace_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,8 @@ def export_file(relative_path):
)

response = send_file(file_path, as_attachment=True)

return response

except FileNotFoundError as e:
logger.error("FileNotFoundError: %s while accessing %s", e, user_workspace_dir)
Expand Down Expand Up @@ -1238,6 +1240,4 @@ def export_file(relative_path):
)
return jsonify({"error": "An internal error occurred"}), 500

return response


0 comments on commit 94260ba

Please sign in to comment.