[scrobbles] Catch attribute error in overlapping
All checks were successful
build & deploy / test (push) Successful in 1m50s
build & deploy / deploy (push) Successful in 30s

This commit is contained in:
2026-04-03 22:30:53 -04:00
parent 523ed3a499
commit b11bb782e3

View File

@ -352,7 +352,10 @@ class ScrobbleListView(LoginRequiredMixin, ListView):
start = s.timestamp
end = s.stop_timestamp
if end is None:
end = start + datetime.timedelta(hours=12)
try:
end = start + datetime.timedelta(hours=12)
except AttributeError:
end = start
return start, end
for i, a in enumerate(scrobbles):