diff --git a/genshin/client/components/geetest/client.py b/genshin/client/components/geetest/client.py index 0b1d8373..c594ecc1 100644 --- a/genshin/client/components/geetest/client.py +++ b/genshin/client/components/geetest/client.py @@ -9,7 +9,6 @@ import aiohttp import aiohttp.web -from qrcode.constants import ERROR_CORRECT_L from genshin import constants, errors from genshin.client import routes @@ -527,6 +526,7 @@ async def login_with_qrcode(self) -> typing.Dict[str, str]: """ import qrcode import qrcode.image.pil + from qrcode.constants import ERROR_CORRECT_L creation_result = await self._create_qrcode() qrcode_: qrcode.image.pil.PilImage = qrcode.make(creation_result.url, error_correction=ERROR_CORRECT_L) # type: ignore