The json module is in Python 2.6 and up. json does not raise JSONDecodeError, but ValueError. Since JSONDecodeError is a subclass of ValueError, the except ValueError will work for both. |
||
|---|---|---|
| .. | ||
| optim | ||
| pages | ||
| __init__.py | ||
| antispam.py | ||
| backend.py | ||
| browser.py | ||
| captcha.py | ||
| exceptions.py | ||
| test.py | ||