diff --git a/app/back-end/src/routes/workspace_route.py b/app/back-end/src/routes/workspace_route.py index ebfc4d9..01a38b9 100644 --- a/app/back-end/src/routes/workspace_route.py +++ b/app/back-end/src/routes/workspace_route.py @@ -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) @@ -1238,6 +1240,4 @@ def export_file(relative_path): ) return jsonify({"error": "An internal error occurred"}), 500 - return response -