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:
+1
-1
@@ -160,7 +160,7 @@ class Node( object ):
|
|||||||
assert not self.waiting
|
assert not self.waiting
|
||||||
if isinstance( cmd, list ):
|
if isinstance( cmd, list ):
|
||||||
cmd = ' '.join( cmd )
|
cmd = ' '.join( cmd )
|
||||||
if cmd[ -1 ] == '&':
|
if len( cmd ) > 0 and cmd[ -1 ] == '&':
|
||||||
separator = '&'
|
separator = '&'
|
||||||
cmd = cmd[ :-1 ]
|
cmd = cmd[ :-1 ]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user