[scrobbles] Catch attribute error in overlapping
This commit is contained in:
@ -352,7 +352,10 @@ class ScrobbleListView(LoginRequiredMixin, ListView):
|
|||||||
start = s.timestamp
|
start = s.timestamp
|
||||||
end = s.stop_timestamp
|
end = s.stop_timestamp
|
||||||
if end is None:
|
if end is None:
|
||||||
end = start + datetime.timedelta(hours=12)
|
try:
|
||||||
|
end = start + datetime.timedelta(hours=12)
|
||||||
|
except AttributeError:
|
||||||
|
end = start
|
||||||
return start, end
|
return start, end
|
||||||
|
|
||||||
for i, a in enumerate(scrobbles):
|
for i, a in enumerate(scrobbles):
|
||||||
|
|||||||
Reference in New Issue
Block a user