Skip to content

Commit

Permalink
refactor: remove APINotImplementedError
Browse files Browse the repository at this point in the history
Not in use anymore.
  • Loading branch information
danipran committed Apr 12, 2024
1 parent ff49fee commit d27da82
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion open_city_profile/consts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Common errors
API_NOT_IMPLEMENTED_ERROR = "API_NOT_IMPLEMENTED_ERROR"
GENERAL_ERROR = "GENERAL_ERROR"
OBJECT_DOES_NOT_EXIST_ERROR = "OBJECT_DOES_NOT_EXIST_ERROR"
INVALID_EMAIL_FORMAT_ERROR = "INVALID_EMAIL_FORMAT"
Expand Down
4 changes: 0 additions & 4 deletions open_city_profile/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ class ProfileGraphQLError(GraphQLError):
# Open city profile


class APINotImplementedError(ProfileGraphQLError):
"""The functionality is not yet implemented"""


class ProfileAlreadyExistsForUserError(ProfileGraphQLError):
"""Profile already exists for the user"""

Expand Down
3 changes: 0 additions & 3 deletions open_city_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from helusers.oidc import AuthenticationError

from open_city_profile.consts import (
API_NOT_IMPLEMENTED_ERROR,
CONNECTED_SERVICE_DATA_QUERY_FAILED_ERROR,
CONNECTED_SERVICE_DELETION_FAILED_ERROR,
CONNECTED_SERVICE_DELETION_NOT_ALLOWED_ERROR,
Expand All @@ -30,7 +29,6 @@
VALIDATION_ERROR,
)
from open_city_profile.exceptions import (
APINotImplementedError,
ConnectedServiceDataQueryFailedError,
ConnectedServiceDeletionFailedError,
ConnectedServiceDeletionNotAllowedError,
Expand All @@ -54,7 +52,6 @@
ObjectDoesNotExist: OBJECT_DOES_NOT_EXIST_ERROR,
TokenExpiredError: TOKEN_EXPIRED_ERROR,
PermissionDenied: PERMISSION_DENIED_ERROR,
APINotImplementedError: API_NOT_IMPLEMENTED_ERROR,
ValidationError: VALIDATION_ERROR,
graphene_validator.errors.ValidationGraphQLError: VALIDATION_ERROR,
InvalidEmailFormatError: INVALID_EMAIL_FORMAT_ERROR,
Expand Down

0 comments on commit d27da82

Please sign in to comment.