소스 검색

Add a guard before terminating

Steven Silvester 7 년 전
부모
커밋
9b90712468
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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):