Browse Source

Add a guard before terminating

Steven Silvester 7 năm trước cách đây
mục cha
commit
9b90712468
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      jupyterlab/commands.py

+ 2 - 1
jupyterlab/commands.py

@@ -83,7 +83,8 @@ def run(cmd, **kwargs):
         logger.info(output)
         raise error
     finally:
-        proc.terminate()
+        if not proc.returncode:
+            proc.terminate()
 
 
 def install_extension(extension, app_dir=None, logger=None):