From 2a1ef11d9511aa4dfc29944dbcd3150acc32a6db Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 12 Oct 2010 11:54:43 -0500 Subject: [PATCH] don't attempt recursion when the subcmd is, in fact, an empty string (i.e. text was '[]') --- Module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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