浏览代码

Try a proc terminate in finally

Steven Silvester 7 年之前
父节点
当前提交
dd52e21177
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      jupyterlab/commands.py

+ 2 - 0
jupyterlab/commands.py

@@ -83,6 +83,8 @@ def run(cmd, **kwargs):
         output = error.output.decode('utf-8')
         logger.info(output)
         raise error
+    finally:
+        proc.terminate()
 
 
 def install_extension(extension, app_dir=None, logger=None):