ab = AbstractRetrieval("2-s2.0-84958120800", view="REF")
ab.references
results in AttributeError: 'str' object has no attribute 'get' in line info = item.get('ref-info', item).
The issue is caused by a malformatted reference list (from ._ref), where the offending element is simply no dictionary. Instead the dictionary keys became list members are simple strings.
pybliometrics version: 3.6
Code to reproduce the bug:
results in
AttributeError: 'str' object has no attribute 'get'
in lineinfo = item.get('ref-info', item)
.The issue is caused by a malformatted reference list (from
._ref
), where the offending element is simply no dictionary. Instead the dictionary keys became list members are simple strings.Solution: Skip
item
if not a dictionary.