From 6df59157e4ac1401d9683b0ce003950a1302d7d8 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 8 Dec 2021 20:57:49 -0500 Subject: [PATCH] #491 fix nonetype error --- modules/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index 6ada542e..86da3e32 100644 --- a/modules/config.py +++ b/modules/config.py @@ -100,7 +100,9 @@ class Config: changes = [] def hooks(attr): if attr in temp: - changes.extend([w for w in util.get_list(temp.pop(attr), split=False) if w not in changes]) + items = util.get_list(temp.pop(attr), split=False) + if items: + changes.extend([w for w in items if w not in changes]) hooks("collection_creation") hooks("collection_addition") hooks("collection_removal")