From a590c6c7eeecb49ebad6f5bb368b2455b83d344c Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 15 Nov 2020 22:58:10 +0700 Subject: [PATCH] Handle anilist['status'] being null --- sukuinote/slave-plugins/anilist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sukuinote/slave-plugins/anilist.py b/sukuinote/slave-plugins/anilist.py index b6b4a50..dccb0b3 100644 --- a/sukuinote/slave-plugins/anilist.py +++ b/sukuinote/slave-plugins/anilist.py @@ -80,7 +80,7 @@ async def generate_media(anilist): type = anilist['type'].capitalize() format = anilist['format'] format = FORMAT_NAMES.get(format, format) - status = anilist['status'].replace('_', ' ').title() + status = (anilist['status'] or 'Unknown').replace('_', ' ').title() description = (anilist.get('description') or '').strip() episodes = anilist['episodes'] duration = anilist['duration']