[scrobbles] Catch attribute error in overlapping
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user