Skip to content

Commit 08f9400

Browse files
authored
Fix typos and example code mistakes
1 parent 6452351 commit 08f9400

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,28 +218,28 @@ solver.report(id, False) # captcha solved incorrectly
218218
```
219219

220220
### Error handling
221-
If case of an error captcha 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.
222222
```python
223-
Try:
223+
try:
224224
result = solver.text('If tomorrow is Saturday, what day is today?')
225-
Except ValidationException as e:
225+
except ValidationException as e:
226226
# invalid parameters passed
227227
print(e)
228-
Except NetworkException as e:
228+
except NetworkException as e:
229229
# network error occurred
230230
print(e)
231-
Except ApiException as e:
231+
except ApiException as e:
232232
# api respond with error
233233
print(e)
234-
Except TimeoutException as e:
234+
except TimeoutException as e:
235235
# captcha is not solved so far
236236
print(e)
237237
```
238238

239239

240240
### Proxies
241241

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.
243243

244244
```python
245245
proxy={

0 commit comments

Comments
 (0)