pybliometrics-dev / pybliometrics

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

SerialTitle.citescoreyearinfolist throws TypeError #215

Closed still-coding closed 2 years ago

still-coding commented 2 years ago

Hello! I'm getting TypeError exception when trying to get citescoreyearinfolist value from SerialTitle. My code basically looks like this:

st = SerialTitle('1843-6110')
print(st.citescoreyearinfolist)

And traceback:

Traceback (most recent call last):
  File "./fill_db.py", line 430, in <module>
    print(st.citescoreyearinfolist)
  File "/home/ivan/anaconda3/lib/python3.8/site-packages/pybliometrics/scopus/serial_title.py", line 27, in citescoreyearinfolist
    tracker = (int(d['citeScoreTrackerYear']),
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Maybe I'm doing something wrong?

Pybliometrics version is 3.1.0.

Michael-E-Rose commented 2 years ago

This is a bug affecting sources whose coverage is discontinued. That's why they don't have tracked metrics, which is for the ongoing year. Let me fix this ASAP...

still-coding commented 2 years ago

Thank you for quick fix and for this great project!