Commit 50cd1d8
committed
Update exceptions.py
Python 2 `json` module doesn't have a `JSONDecodeError`. **ugh**
Fortunately `JSONDecodeError` is a subclass of `ValueError`, so we can use this to catch the same parsing error in both Python 2 and 3.1 parent 5606c88 commit 50cd1d8
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
0 commit comments