Commit 12b1393b authored by david's avatar david
Browse files

Add another `None` check.

parent e469e930
Pipeline #1146 passed with stages
in 3 minutes and 36 seconds
......@@ -122,7 +122,7 @@ class PlayLog(db.Model):
if track:
# Station fallback may not provide a duration. Take this one, it's better than nothing.
if track.track_duration == 0:
if track.track_duration == 0 or not track.track_duration:
return track
# Preferably only get playlogs which are known for still being on air
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment