Skip to content
Snippets Groups Projects
Commit 12b1393b authored by David Trattnig's avatar David Trattnig
Browse files

Add another `None` check.

parent e469e930
No related branches found
No related tags found
No related merge requests found
Pipeline #1146 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment