Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163574
D1818.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
501 B
Subscribers
None
D1818.diff
View Options
diff --git a/swh/indexer/metadata_dictionary/npm.py b/swh/indexer/metadata_dictionary/npm.py
--- a/swh/indexer/metadata_dictionary/npm.py
+++ b/swh/indexer/metadata_dictionary/npm.py
@@ -115,6 +115,8 @@
url = d.get('url', None)
elif isinstance(d, str):
match = self._parse_author.match(d)
+ if not match:
+ return None
name = match.group('name')
email = match.group('email')
url = match.group('url')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 10:37 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225804
Attached To
D1818: npm: Fix crash on invalid 'author' field.
Event Timeline
Log In to Comment