Refs #27857 -- Replaced json.loads() ValueError exception catching with JSONDecodeError.

This commit is contained in:
Tim Graham 2017-06-20 15:16:37 -04:00
parent cfff2af02b
commit 98706bb35e
6 changed files with 9 additions and 9 deletions

View file

@ -391,7 +391,7 @@ class ManifestFilesMixin(HashedFilesMixin):
return OrderedDict()
try:
stored = json.loads(content, object_pairs_hook=OrderedDict)
except ValueError:
except json.JSONDecodeError:
pass
else:
version = stored.get('version')