We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8efac commit 94260baCopy full SHA for 94260ba
app/back-end/src/routes/workspace_route.py
@@ -1197,6 +1197,8 @@ def export_file(relative_path):
1197
)
1198
1199
response = send_file(file_path, as_attachment=True)
1200
+
1201
+ return response
1202
1203
except FileNotFoundError as e:
1204
logger.error("FileNotFoundError: %s while accessing %s", e, user_workspace_dir)
@@ -1238,6 +1240,4 @@ def export_file(relative_path):
1238
1240
1239
1241
return jsonify({"error": "An internal error occurred"}), 500
1242
- return response
-
1243
0 commit comments