From 10f35cacf50148c34b11fba719fc8f734f99def1 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 26 Sep 2016 19:47:15 -0300 Subject: [bug] correctly log dispatch failures because of malformed parts --- src/leap/bitmask/core/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3