summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-09-26 19:47:15 -0300
committerdrebs <drebs@riseup.net>2016-09-30 13:10:13 -0300
commit10f35cacf50148c34b11fba719fc8f734f99def1 (patch)
tree9c2b5e935b217abfab5f75c4cce541195c23d95f /src/leap/bitmask/core
parentde329fa2c08d368e03432e18010fe7991686ab5c (diff)
[bug] correctly log dispatch failures because of malformed parts
Diffstat (limited to 'src/leap/bitmask/core')
-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 fe85682..72f9850 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)