diff --git a/Module.py b/Module.py index 3636b46..aaec8f5 100644 --- a/Module.py +++ b/Module.py @@ -225,7 +225,7 @@ class Module(object): attempt = what - if start_idx == -1 or end_idx == -1: + if start_idx == -1 or end_idx == -1 or len(subcmd) == 0: # no nested commands at all if replypath is a real value, so don't do a damn thing if replypath is not None: return attempt