From 4d1c060e2183fc24ae75cfa81dad157a1ce08f01 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 29 Sep 2013 13:14:52 +1000 Subject: [PATCH] ENH: dont execute empty commands --- server/action.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/action.py b/server/action.py index 3f3033fd..b2ccda1e 100644 --- a/server/action.py +++ b/server/action.py @@ -359,6 +359,10 @@ class Action: #@staticmethod def executeCmd(realCmd): logSys.debug(realCmd) + if realCmd is None or realCmd == "": + logSys.debug("Nothing to do") + return True + _cmd_lock.acquire() try: # Try wrapped within another try needed for python version < 2.5 try: