ENH: dont execute empty commands

This commit is contained in:
Daniel Black 2013-09-29 13:14:52 +10:00
parent 13a12589a3
commit 4d1c060e21

View file

@ -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: