File tree 1 file changed +3
-3
lines changed
services/web/server/src/simcore_service_webserver/exporter 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,11 @@ async def export_project(request: web.Request):
69
69
except Exception as e :
70
70
# make sure all errors are trapped and the directory where the file is sotred is removed
71
71
await remove_dir (temp_dir )
72
+ raise e
73
+ finally :
72
74
await retrieve_and_notify_project_locked_state (
73
75
user_id , project_uuid , request .app
74
76
)
75
- raise e
76
77
77
78
headers = {"Content-Disposition" : f'attachment; filename="{ file_to_download .name } "' }
78
79
@@ -144,11 +145,10 @@ async def duplicate_project(request: web.Request):
144
145
exported_project_path = exported_project_path ,
145
146
)
146
147
return dict (uuid = duplicated_project_uuid )
147
- except Exception :
148
+ finally :
148
149
await retrieve_and_notify_project_locked_state (
149
150
user_id , project_uuid , request .app
150
151
)
151
- raise
152
152
153
153
154
154
rest_handler_functions = {
You can’t perform that action at this time.
0 commit comments