You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If case of an errorcaptcha solver throws an exception. It's important to properly handle these cases. We recommend to use`try except` to handle exceptions.
221
+
In case of an error, the captcha solver throws an exception. It's important to properly handle these cases. We recommend using`try except` to handle exceptions.
222
222
```python
223
-
Try:
223
+
try:
224
224
result = solver.text('If tomorrow is Saturday, what day is today?')
225
-
Except ValidationException as e:
225
+
except ValidationException as e:
226
226
# invalid parameters passed
227
227
print(e)
228
-
Except NetworkException as e:
228
+
except NetworkException as e:
229
229
# network error occurred
230
230
print(e)
231
-
Except ApiException as e:
231
+
except ApiException as e:
232
232
# api respond with error
233
233
print(e)
234
-
Except TimeoutException as e:
234
+
except TimeoutException as e:
235
235
# captcha is not solved so far
236
236
print(e)
237
237
```
238
238
239
239
240
240
### Proxies
241
241
242
-
You can pass your proxy as an additional argumen for methods: recaptcha, funcaptcha and geetest. The proxy will be forwarded to the API to solve the captcha.
242
+
You can pass your proxy as an additional argument for methods: recaptcha, funcaptcha and geetest. The proxy will be forwarded to the API to solve the captcha.
0 commit comments