summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/bitmask/core/dispatcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index fe85682b..72f98506 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -43,7 +43,7 @@ class SubCommand(object):
subcmd = parts[1]
_method = getattr(self, 'do_' + subcmd.upper(), None)
except IndexError:
- _method = None
+ raise RuntimeError('Can\'t dispatch subcommand: %s' % str(subcmd))
if not _method:
raise RuntimeError('No such subcommand: ' + subcmd)