Browse Source

remove uneeded exception

Guénaël Muller 6 years ago
parent
commit
346e7c0341
1 changed files with 0 additions and 1 deletions
  1. 0 1
      backend/tracim_backend/views/core_api/workspace_controller.py

+ 0 - 1
backend/tracim_backend/views/core_api/workspace_controller.py View File

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