diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index e19d097..36fb6f7 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -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):