This function:
def assisted_by(self, players):
    text = self.event_text.split('Assisted')
    if len(text) > 1:
       print ([i for i in players if i in text[1]])
       return [i for i in players if i in text[1]][0]
    else:
       return 'N/A'
prints hundreds of items and ends up with an empty list:
(...)
['Kelechi Iheanacho']
['James Maddison']
['Wilfried Zaha']
['Emiliano Buendia']
[]
Returning the following error:
  File "data_gathering.py", line 1057, in assisted_by
    return [i for i in players if i in text[1]][0]
IndexError: list index out of range
How can I fix this error without removing [0] index?
 
    