Przeglądaj źródła

remove uneeded exception

Guénaël Muller 6 lat temu
rodzic
commit
346e7c0341

+ 0 - 1
backend/tracim_backend/views/core_api/workspace_controller.py Wyświetl plik

@@ -309,7 +309,6 @@ class WorkspaceController(Controller):
309 309
         return content
310 310
 
311 311
     @hapic.with_api_doc(tags=[SWAGGER_TAG_WORKSPACE_ENDPOINTS])
312
-    @hapic.handle_exception(WorkspacesDoNotMatch, HTTPStatus.BAD_REQUEST)
313 312
     @require_workspace_role(UserRoleInWorkspace.READER)
314 313
     @hapic.input_path(WorkspaceAndContentIdPathSchema())
315 314
     @hapic.output_body(NoContentSchema(), default_http_code=HTTPStatus.FOUND)  # nopep8