inspirehep / beard

Bibliographic Entity Automatic Recognition and Disambiguation
Other
66 stars 36 forks source link

utils: fix IndexError in given_name_initial #95

Closed jochenklein closed 8 years ago

jochenklein commented 8 years ago

Fixes given_name_initial(name, index=0) by returning empty string in case of IndexError: list index out of range. This exception is caused by having invalid author names, e.g. name='., '. Unfortunately, we have such names on CDS.