mirror of
https://github.com/django/django.git
synced 2025-10-20 07:12:30 +00:00
Refs #27857 -- Replaced json.loads() ValueError exception catching with JSONDecodeError.
This commit is contained in:
parent
cfff2af02b
commit
98706bb35e
6 changed files with 9 additions and 9 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue