File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ 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
415
416
os ._exit (0 )
416
417
417
418
with logging_lock :
@@ -478,6 +479,7 @@ def background_launch(extra):
478
479
479
480
console .print (f"\n [bold red]Execution error: failed to launch ComfyUI[/bold red]\n " )
480
481
# NOTE: os.exit(0) doesn't work
482
+ # pylint: disable=protected-access
481
483
os ._exit (1 )
482
484
483
485
@@ -528,8 +530,8 @@ def redirector_stdout():
528
530
if process is not None :
529
531
print (process .stdout .readline (), end = "" )
530
532
531
- t1 = threading .Thread (target = redirector_stderr ).start ()
532
- t2 = threading .Thread (target = redirector_stdout ).start ()
533
+ threading .Thread (target = redirector_stderr ).start ()
534
+ threading .Thread (target = redirector_stdout ).start ()
533
535
534
536
try :
535
537
while True :
@@ -558,14 +560,17 @@ def redirector_stdout():
558
560
559
561
if reboot_path is None :
560
562
print ("[bold red]ComfyUI is not installed.[/bold red]\n " )
563
+ # pylint: disable=protected-access
561
564
os ._exit (process .pid )
562
565
563
566
if not os .path .exists (reboot_path ):
567
+ # pylint: disable=protected-access
564
568
os ._exit (process .pid )
565
569
566
570
os .remove (reboot_path )
567
571
except KeyboardInterrupt :
568
572
if process is not None :
573
+ # pylint: disable=protected-access
569
574
os ._exit (1 )
570
575
571
576
You can’t perform that action at this time.
0 commit comments