Skip to content

Commit 6f1cb01

Browse files
committed
Give sane feedback when no effects are registered
1 parent b49112a commit 6f1cb01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demosys/effects/managers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def pre_load(self):
6565
Initialize the effect that should run.
6666
"""
6767
effect_list = [cfg.cls() for name, cfg in effects.effects.items()]
68+
if not effect_list:
69+
raise ValueError("settings.EFFECTS list is empty. No effect to run.")
6870

6971
# If an effect was specified in the initializer, find it
7072
if self.effect_module:

0 commit comments

Comments
 (0)