pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
407 stars 127 forks source link

Robust parsing of author dictionary in AbstractRetrieval().references #267

Closed JakobHoffmann closed 1 year ago

JakobHoffmann commented 1 year ago

When checking the reference authors in the FULL view, a KeyError was thrown as it is possible that there are no authors.

As we now only access the dictionaries in a save way, we need to explicitly check which view is used.

JakobHoffmann commented 1 year ago

Fixes #266

JakobHoffmann commented 1 year ago

Unfortunately i was not able to verify if the test are running correctly, as i had failing test even without changes. However, the number of failed tests did not change with my changes.