diff options
Diffstat (limited to 'Lib/json/decoder.py')
-rw-r--r-- | Lib/json/decoder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/json/decoder.py b/Lib/json/decoder.py index 2422c6ac10..3741deed7d 100644 --- a/Lib/json/decoder.py +++ b/Lib/json/decoder.py @@ -103,7 +103,8 @@ def py_scanstring(s, end, strict=True, try: esc = s[end] except IndexError: - raise JSONDecodeError("Unterminated string starting at", s, begin) + raise JSONDecodeError("Unterminated string starting at", + s, begin) from None # If not a unicode escape sequence, must be in the lookup table if esc != 'u': try: |