-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a3c053
commit 95f1207
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,3 +143,4 @@ chaoxing.log | |
./config.ini | ||
./chaoxing.log | ||
./cookies.txt | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |