Skip to content

Commit 3606e93

Browse files
Fix indentation: keep logic outside except block
1 parent 9d7b47b commit 3606e93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

listenbrainz/webserver/views/index.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ def current_status():
110110
except Exception:
111111
current_app.logger.error("Could not get %s listen count from redis", day.strftime('%Y-%m-%d'), exc_info=True)
112112
day_listen_count = None
113-
listen_counts_per_day.append({
114-
"date": day.strftime('%Y-%m-%d'),
115-
"listenCount": format(day_listen_count, ',d') if day_listen_count else "0",
116-
"label": "today" if delta == 0 else "yesterday",
117-
})
113+
listen_counts_per_day.append({
114+
"date": day.strftime('%Y-%m-%d'),
115+
"listenCount": format(day_listen_count, ',d') if day_listen_count else "0",
116+
"label": "today" if delta == 0 else "yesterday",
117+
})
118118

119119
data = {
120120
"load": load,

0 commit comments

Comments
 (0)