0

JSONDecodeError

I just write a code to load a json file,and I want to use "try ....except..." to avoid the error when the file is damaged or wrong.But I can't use " except JSONDecodeError" , it looks like "JSONDecodeError" can't be used.what can I do? Looking forward to help ,thanks.

16th May 2018, 11:31 AM
huaez
1 Antwort