Skip to content

Commit

Permalink
refactor(exception): remove the deprecated ResponseSystemError
Browse files Browse the repository at this point in the history
PR Closed: #1029
  • Loading branch information
Lee-000 authored and linjiX committed Sep 27, 2021
1 parent 1c0dad1 commit 0270daf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples/move_and_copy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ Split ``trainval`` segment into ``train`` and ``val``:
TensorBay SDK supports three strategies to solve the conflict when the target segment/data already exists,
which can be set as an keyword argument in the above-mentioned functions.

- abort(default): abort the process by raising ResponseSystemError.
- abort(default): abort the process by raising InternalServerError.
- skip: skip moving or copying segment/data.
- override: override the whole target segment/data with the source segment/data.
6 changes: 0 additions & 6 deletions tensorbay/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
+-- NoFileError
+-- FileStructureError
:class:`ResponseSystemError` is deprecated since version v1.11.0.
It will be removed in version v1.13.0. Use :class:`InternalServerError` instead.
"""

from typing import Dict, Optional, Type, Union
Expand Down Expand Up @@ -273,9 +270,6 @@ class InternalServerError(ResponseError):
STATUS_CODE = 500


ResponseSystemError = InternalServerError


class UnauthorizedError(ResponseError):
"""This class defines the exception for unauthorized response error."""

Expand Down

0 comments on commit 0270daf

Please sign in to comment.