diff --git a/src/python_rucaptcha/gee_test.py b/src/python_rucaptcha/gee_test.py index ce6f42da..75200403 100644 --- a/src/python_rucaptcha/gee_test.py +++ b/src/python_rucaptcha/gee_test.py @@ -194,11 +194,7 @@ def captcha_handler(self, challenge: str, **kwargs) -> dict: Notes: Check class docstirng for more info """ - if self.method == GeetestEnm.GeeTestTaskProxyless.value: - if challenge is not None: - self.create_task_payload["task"].update({"challenge": challenge}) - else: - raise ValueError(f"For {self.method} challenge is required") + self.create_task_payload["task"].update({"challenge": challenge}) return self._processing_response(**kwargs) @@ -215,10 +211,6 @@ async def aio_captcha_handler(self, challenge: str) -> dict: Notes: Check class docstirng for more info """ - if self.method == GeetestEnm.GeeTestTaskProxyless.value: - if challenge is not None: - self.create_task_payload["task"].update({"challenge": challenge}) - else: - raise ValueError(f"For {self.method} challenge is required") + self.create_task_payload["task"].update({"challenge": challenge}) return await self._aio_processing_response()