Skip to content

Commit

Permalink
fix: Fix managers imports and error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jokelbaf committed May 31, 2024
1 parent 0f0253a commit 81fb440
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions genshin/client/manager/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
from genshin.client import ratelimit
from genshin.utility import fs as fs_utility

from ...constants import MIYOUSHE_GEETEST_RETCODES

_LOGGER = logging.getLogger(__name__)

__all__ = [
Expand Down Expand Up @@ -155,9 +153,6 @@ async def _request(

errors.check_for_geetest(data, {k: morsel.value for k, morsel in response.cookies.items()})

if data["retcode"] in MIYOUSHE_GEETEST_RETCODES:
raise errors.MiyousheGeetestError(data, {k: morsel.value for k, morsel in response.cookies.items()})

if data["retcode"] == 0:
return data["data"]

Expand Down

0 comments on commit 81fb440

Please sign in to comment.