zhiyzuo / python-scopus

PyScopus
http://zhiyzuo.github.io/python-scopus/
MIT License
23 stars 29 forks source link

AttributeError for simple search_author() query #2

Closed Michael-E-Rose closed 7 years ago

Michael-E-Rose commented 7 years ago

I had strange problem with a query for "KEVIN KORDANA"

>>> first = "kevin"
>>> last = "kordana"
>>> query_dict = {'authfirst': first, 'authlast': last}
>>> author_results = scopus.search_author(query_dict)
A total number of  2  records for the query.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/pyscopus/pyscopus.py", line 67, in search_author
  File "build/bdist.linux-x86_64/egg/pyscopus/utils.py", line 38, in _parse_author
AttributeError: 'NoneType' object has no attribute 'find'

I'm on Ubuntu 14.04 using with Python 2.7. I however don't know which version of pyscopus I am on as __version__ is not defined.

zhiyzuo commented 7 years ago

Updated version fixed this issue.