mirror of
https://github.com/cqwu-ehall/cqwu-ehall.git
synced 2024-11-25 11:46:46 +00:00
17b1f9bd55
* ✨ Support gen_pay_qrcode raise error * ✨ Support BaseModel for get_calendar --------- Co-authored-by: brian <brian@xtaolabs.com>
20 lines
364 B
Python
20 lines
364 B
Python
from .base import CQWUEhallError
|
|
|
|
|
|
class AuthError(CQWUEhallError):
|
|
pass
|
|
|
|
|
|
class UsernameOrPasswordError(AuthError):
|
|
""" 用户名或密码错误 """
|
|
|
|
|
|
class CookieError(AuthError):
|
|
""" Cookie 失效 """
|
|
|
|
|
|
class NeedCaptchaError(AuthError):
|
|
""" 需要验证码才能登录 """
|
|
def __init__(self, captcha: bytes):
|
|
self.captcha = captcha
|