Page MenuHomePhabricator

Fails on Pseudo-nitzschia australis
Closed, DuplicatePublic

Description

Other articles work fine.

https://tools.wmflabs.org/oabot/process?name=Pseudo-nitzschia+australis

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 306, in add_oa_links_in_references
edit.propose_change()
File "./oabot/main.py", line 112, in propose_change
dissemin_paper_object = get_dissemin_paper(reference)
File "./oabot/main.py", line 216, 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__'

Event Timeline

Looks like we're missing the author name, may be due to one of my recent patches to compare the full title in a stricter way.

Nemo_bis triaged this task as Medium priority.Sep 10 2019, 6:29 AM

Uh sorry, I filed a duplicate.

Still get problem.
https://tools.wmflabs.org/oabot/process?name=Pseudo-nitzschia+australis

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.