diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-11-09 20:34:51 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-12-29 03:09:50 +0100 |
commit | 86976a27e7aa9222afc0695c240b0ea7cc8e362b (patch) | |
tree | 8f19391d07b0f2e67b94f3f1e9bc168bd3e4cea8 /src/leap/bitmask/core/dispatcher.py | |
parent | c3acb3ca45480d3a4d72731ca68b69bec6db4e2c (diff) |
[feature] authentication classes and tests
Diffstat (limited to 'src/leap/bitmask/core/dispatcher.py')
-rw-r--r-- | src/leap/bitmask/core/dispatcher.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index 11a319f..5900390 100644 --- a/src/leap/bitmask/core/dispatcher.py +++ b/src/leap/bitmask/core/dispatcher.py @@ -43,6 +43,7 @@ class SubCommand(object): __metaclass__ = APICommand def dispatch(self, service, *parts, **kw): + subcmd = '' try: subcmd = parts[1] _method = getattr(self, 'do_' + subcmd.upper(), None) @@ -402,7 +403,7 @@ class CommandDispatcher(object): return d def do_WEBUI(self, *parts): - subcmd = parts[1] + subcmd = parts[1] if parts and len(parts) > 1 else None dispatch = self.subcommand_webui.dispatch if subcmd == 'enable': |