Pārlūkot izejas kodu

remove uneeded exception

Guénaël Muller 6 gadus atpakaļ
vecāks
revīzija
346e7c0341

+ 0 - 1
backend/tracim_backend/views/core_api/workspace_controller.py Parādīt failu

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