Selaa lähdekoodia

Add a guard before terminating

Steven Silvester 7 vuotta sitten
vanhempi
commit
9b90712468
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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):