From eec9408a4bf84b8438b8550b9816b303a666a1ae Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 15 Feb 2016 12:53:56 +0200 Subject: [PATCH] clean --- novnc.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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