diff --git a/.gitignore b/.gitignore index 169794e..ee542c9 100644 --- a/.gitignore +++ b/.gitignore @@ -143,3 +143,4 @@ chaoxing.log ./config.ini ./chaoxing.log ./cookies.txt +.idea/ \ No newline at end of file diff --git a/api/exceptions.py b/api/exceptions.py index ddbd536..d66e38c 100644 --- a/api/exceptions.py +++ b/api/exceptions.py @@ -1,12 +1,16 @@ from loguru import logger -from requests.exceptions import JSONDecodeError +# from requests.exceptions import JSONDecodeError +from json import JSONDecodeError + class BaseException(Exception): def __init__(self, _msg: str = None): if _msg: logger.error(_msg) + class LoginError(BaseException): pass + class FormatError(Exception): pass \ No newline at end of file