git loader crashes when 'author' or 'committer' field is missing
https://sentry.softwareheritage.org/organizations/swh/issues/104652/?referrer=phabricator_plugin
TypeError: fullname is None.
(1 additional frame(s) were not displayed)
...
File "swh/loader/git/base.py", line 96, in store_data
for revision in self.get_revisions():
File "swh/loader/git/loader.py", line 436, in get_revisions
yield converters.dulwich_commit_to_revision(raw_obj)
File "swh/loader/git/converters.py", line 220, in dulwich_commit_to_revision
committer=parse_author(commit.committer),
File "swh/loader/git/converters.py", line 152, in parse_author
return Person.from_fullname(name_email)
File "swh/model/model.py", line 302, in from_fullname
raise TypeError("fullname is None.")
Loading failure, updating to `failed` status
Typically, this happens with commits created by old dgit
versions, because committer
was spelled commiter
.
Migrated from T4558 (view on Phabricator)