Closed lucasrangit closed 3 years ago
We should check both if the key exists and if it is None. In your PR it would now crash in cases it previously didn't.
Yeah, you're right. Do you have a sample playlist from Spotify that crashes because the duration value is None?
I don't have it anymore but it has definitely happened before or I wouldn't have added that part :)
In my playlist Spotify did not return the duration for the following track.
Resulting in the following exception.
res
dictionary.