Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749401
D1062.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
491 B
Subscribers
None
D1062.id.diff
View Options
diff --git a/swh/indexer/metadata_dictionary.py b/swh/indexer/metadata_dictionary.py
--- a/swh/indexer/metadata_dictionary.py
+++ b/swh/indexer/metadata_dictionary.py
@@ -202,7 +202,8 @@
except json.JSONDecodeError:
self.log.warning('Error unjsoning from %s', self.log_suffix)
return
- return self.translate_dict(content_dict)
+ if isinstance(content_dict, dict):
+ return self.translate_dict(content_dict)
@register_mapping
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 24, 5:02 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227263
Attached To
D1062: Check the root element of JSON files is a dictionary.
Event Timeline
Log In to Comment