diff --git a/novnc.py b/novnc.py index a6e7089..2c39b8b 100644 --- a/novnc.py +++ b/novnc.py @@ -18,9 +18,11 @@ def spawn(target, options): c_option = '--{} {} '.format(key, value) a_options += c_option - command_line = 'python3 runwebsockify.py ' + a_options + vnctarget - args = shlex.split(command_line) - p = subprocess.Popen(args) - print('spawn!') + try: + command_line = 'python3 runwebsockify.py ' + a_options + vnctarget + args = shlex.split(command_line) + p = subprocess.Popen(args) + print('spawned!') +:w