santiment / sanpy

Santiment API Python Client
MIT License
94 stars 29 forks source link

Handle empty results in sanNews #76

Closed spiderjako closed 5 years ago

spiderjako commented 5 years ago

When there are no news, the list, which is returned is empty, that means it can't be indexed, hence the "index out of range" error. That's why I check if it is empty before that