Skip to content

Commit ef12824

Browse files
committed
Removed duplicated function
1 parent c0cff36 commit ef12824

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

anime_api/apis/animechan/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,3 @@ def __check_response_code(status_code: int, msg: str = ''):
8282
raise exceptions.NotFound()
8383
elif status_code != 200:
8484
raise exceptions.ServerError(status_code=status_code, msg=msg)
85-
86-
@staticmethod
87-
def __check_response_code(status_code: int, msg: str = ""):
88-
if status_code == 404:
89-
raise exceptions.NotFound(status_code, msg=msg)
90-
elif status_code != 200:
91-
raise exceptions.ServerError(status_code=status_code, msg=msg)

0 commit comments

Comments
 (0)