aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/due/routes/index.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/due/routes/index.py b/src/due/routes/index.py
index a08c498..df1b6da 100644
--- a/src/due/routes/index.py
+++ b/src/due/routes/index.py
@@ -99,7 +99,9 @@ def home():
media
for media in releasing_manga
if media["media"]["type"] == "MANGA"
- and int(media["media"]["mediaListEntry"]["progress"])
+ and int(
+ (media["media"]["mediaListEntry"] or {"progress": 0})["progress"]
+ )
>= 1 # Useful when testing
]
(manga_html, manga_length) = manga_to_html(