OAbot

Oops! Something went wrong.

Error:
'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/data/project/oabot/www/python/venv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/data/project/oabot/www/python/venv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "app.py", line 141, in process
context = get_proposed_edits(page_name, force)
File "app.py", line 225, in get_proposed_edits
return get_proposed_edits(redir.group(1), force, False, only_doi)
File "app.py", line 235, in get_proposed_edits
filtered = list([e for e in all_templates if e.proposed_change])
File "app.py", line 235, in
filtered = list([e for e in all_templates if e.proposed_change])
File "./oabot/main.py", line 392, in add_oa_links_in_references
edit.propose_change(only_doi)
File "./oabot/main.py", line 119, in propose_change
link, oa_status = get_oa_link(paper=paper_object, doi=doi, only_unpaywall=only_doi)
File "./oabot/main.py", line 327, in get_oa_link
boa = resp.get('best_oa_location', None)
AttributeError: 'NoneType' object has no attribute 'get'

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