Page MenuHomePhabricator

problem with page Unbibium
Closed, DuplicatePublic

Description

OAbot
Oops! Something went wrong.
Error:
'NoneType' object has no attribute 'getitem'
Traceback (most recent call last):
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/data/project/oabot/www/python/src/app.py", line 140, in process
context = get_proposed_edits(page_name, force)
File "/data/project/oabot/www/python/src/app.py", line 229, in get_proposed_edits
filtered = list(filter(lambda e: e.proposed_change, all_templates))
File "./oabot/main.py", line 349, in add_oa_links_in_references
edit.propose_change(only_doi)
File "./oabot/main.py", line 112, in propose_change
dissemin_paper_object = get_dissemin_paper(reference)
File "./oabot/main.py", line 240, in get_dissemin_paper
if date[:4] == paper_year and ratio(authors[0].get("last", ""), paper_authorlast) > 0.75:
TypeError: 'NoneType' object has no attribute 'getitem'

If you don't think you should be seeing this error please report it on Phabricator.