Skip to content
Snippets Groups Projects
Commit c6e7eaf0 authored by Bob Lantz's avatar Bob Lantz
Browse files

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

There might still be some issues with this however...
parent cd745748
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ def sendCmd( self, cmd, printPid=True ):
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment