Changed to not die immediately if we send in an empty command.

There might still be some issues with this however...
This commit is contained in:
Bob Lantz
2010-04-10 21:29:34 -07:00
parent cd7457480b
commit c6e7eaf07c
+1 -1
View File
@@ -160,7 +160,7 @@ class Node( object ):
assert not self.waiting
if isinstance( cmd, list ):
cmd = ' '.join( cmd )
if cmd[ -1 ] == '&':
if len( cmd ) > 0 and cmd[ -1 ] == '&':
separator = '&'
cmd = cmd[ :-1 ]
else: