Jelajahi Sumber

Try a proc terminate in finally

Steven Silvester 7 tahun lalu
induk
melakukan
dd52e21177
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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):