While running my program, the program will randomly crash and displayer Error: List index out of range. however, I'm only looking to index the only number in the list. I don't understand why after a certain amount of time this number would cease to exist.
etherPrice = str(cryptocompare.get_price('ETH', currency='USD'))
intRegex2 = re.compile(r'\d+\.\d+')
result2 = intRegex2.findall(etherPrice)
resultString2 = str(result2[0])