summaryrefslogtreecommitdiff
path: root/voctocore/lib/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/lib/commands.py')
-rw-r--r--voctocore/lib/commands.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/voctocore/lib/commands.py b/voctocore/lib/commands.py
index 05db54c..9b35bf2 100644
--- a/voctocore/lib/commands.py
+++ b/voctocore/lib/commands.py
@@ -36,6 +36,10 @@ class ControlServerCommands():
return True
def set_composite_mode(self, composite_mode):
- mode = CompositeModes[composite_mode]
+ try:
+ mode = CompositeModes[composite_mode]
+ except KeyError as e:
+ raise KeyError("composite-mode %s unknown" % composite_mode)
+
self.pipeline.vmixer.setCompositeMode(mode)
return True