don't attempt recursion when the subcmd is, in fact, an empty string (i.e. text was '[]')
This commit is contained in:
parent
95a27cc44b
commit
2a1ef11d95
|
@ -225,7 +225,7 @@ class Module(object):
|
||||||
|
|
||||||
attempt = what
|
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
|
# no nested commands at all if replypath is a real value, so don't do a damn thing
|
||||||
if replypath is not None:
|
if replypath is not None:
|
||||||
return attempt
|
return attempt
|
||||||
|
|
Loading…
Reference in New Issue