Add support for python2 type json exceptions.

This commit is contained in:
poljar (Damir Jelić) 2018-02-20 13:37:59 +01:00
parent bd808e4bc2
commit 81e078173a

View file

@ -22,6 +22,11 @@ import json
from enum import Enum, unique
from functools import partial
try:
from json.decoder import JSONDecodeError
except ImportError:
JSONDecodeError = ValueError
try:
from urllib import quote, urlencode
except ImportError: