Skip to content

Commit

Permalink
🐛 Change 10103 error to LabAccountNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Dec 17, 2023
1 parent 8fdc173 commit d52ee8a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions simnet/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ class InvalidCookies(CookieException):
message = "Cookies are not valid."


class LabAccountNotFound(InvalidCookies):
"""Lab account not found."""

ret_code = 10103
message = "Cookies are valid but do not have a hoyolab account bound to them."


class TooManyRequests(CookieException):
"""Made too many requests and got ratelimited."""

Expand Down Expand Up @@ -237,10 +244,7 @@ class InvalidDevice(BadRequest):
# database game record
10101: TooManyRequests,
10102: DataNotPublic,
10103: (
InvalidCookies,
"Cookies are valid but do not have a hoyolab account bound to them.",
),
10103: LabAccountNotFound,
10104: "Cannot view real-time notes of other users.",
# calculator
-500001: "Invalid fields in calculation.",
Expand Down

0 comments on commit d52ee8a

Please sign in to comment.