mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-21 21:58:05 +00:00
🐛 Change 5003 error to InvalidDevice
This commit is contained in:
parent
c2b391f3b5
commit
720e7c5832
@ -216,6 +216,13 @@ class RedemptionClaimed(RedemptionException):
|
||||
message = "Redemption code has been claimed already."
|
||||
|
||||
|
||||
class InvalidDevice(BadRequest):
|
||||
"""Device is invalid."""
|
||||
|
||||
ret_code = 5003
|
||||
message = "Device id and fp are invalid."
|
||||
|
||||
|
||||
_TBR = Type[BadRequest]
|
||||
_errors: Dict[int, Union[_TBR, str, Tuple[_TBR, Optional[str]]]] = {
|
||||
# misc hoyolab
|
||||
@ -264,7 +271,7 @@ _errors: Dict[int, Union[_TBR, str, Tuple[_TBR, Optional[str]]]] = {
|
||||
1008: AccountNotFound,
|
||||
-1104: "This action must be done in the app.",
|
||||
1034: NeedChallenge,
|
||||
5003: NeedChallenge,
|
||||
5003: InvalidDevice,
|
||||
}
|
||||
|
||||
ERRORS: Dict[int, Tuple[_TBR, Optional[str]]] = {
|
||||
|
Loading…
Reference in New Issue
Block a user