File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,6 @@ def msg_hook(stream):
412
412
ConfigManager ().write_config ()
413
413
414
414
# NOTE: os.exit(0) doesn't work.
415
- # pylint: disable=protected-access
416
415
os ._exit (0 )
417
416
418
417
with logging_lock :
@@ -479,7 +478,6 @@ def background_launch(extra):
479
478
480
479
console .print (f"\n [bold red]Execution error: failed to launch ComfyUI[/bold red]\n " )
481
480
# NOTE: os.exit(0) doesn't work
482
- # pylint: disable=protected-access
483
481
os ._exit (1 )
484
482
485
483
@@ -512,10 +510,10 @@ def launch_comfyui(extra):
512
510
513
511
if reboot_path is None :
514
512
print ("[bold red]ComfyUI is not installed.[/bold red]\n " )
515
- os . exit (res )
513
+ exit (res )
516
514
517
515
if not os .path .exists (reboot_path ):
518
- os . exit (res )
516
+ exit (res )
519
517
520
518
os .remove (reboot_path )
521
519
else :
@@ -560,17 +558,14 @@ def redirector_stdout():
560
558
561
559
if reboot_path is None :
562
560
print ("[bold red]ComfyUI is not installed.[/bold red]\n " )
563
- # pylint: disable=protected-access
564
561
os ._exit (process .pid )
565
562
566
563
if not os .path .exists (reboot_path ):
567
- # pylint: disable=protected-access
568
564
os ._exit (process .pid )
569
565
570
566
os .remove (reboot_path )
571
567
except KeyboardInterrupt :
572
568
if process is not None :
573
- # pylint: disable=protected-access
574
569
os ._exit (1 )
575
570
576
571
You can’t perform that action at this time.
0 commit comments