Skip to content

Commit

Permalink
add pass to error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikoleta-v3 committed Nov 12, 2019
1 parent 97a724d commit 82c5573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arcas/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def create_keys(raw_article):
"""
try:
full_name = raw_article['author'][0].split(' ')
except TypeError:
except (TypeError, IndexError) as e:
full_name = [None]
year = raw_article['date']
string = '{}{}{}{}'.format(full_name[-1], raw_article['title'], year,
Expand Down

0 comments on commit 82c5573

Please sign in to comment.