diff options
author | drebs <drebs@riseup.net> | 2016-09-26 19:47:15 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2016-09-30 13:10:13 -0300 |
commit | 10f35cacf50148c34b11fba719fc8f734f99def1 (patch) | |
tree | 9c2b5e935b217abfab5f75c4cce541195c23d95f /src/leap | |
parent | de329fa2c08d368e03432e18010fe7991686ab5c (diff) |
[bug] correctly log dispatch failures because of malformed parts
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/core/dispatcher.py | 2 |
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) |