Remove signal on hard_exit() to prevent exceptions

This commit is contained in:
henryruhs 2024-12-23 11:06:39 +01:00
parent df96eb51e7
commit 39ea10cf07

View File

@ -1,3 +1,4 @@
import signal
import sys
from time import sleep
@ -7,6 +8,7 @@ from facefusion.typing import ErrorCode
def hard_exit(error_code : ErrorCode) -> None:
signal.signal(signal.SIGINT, signal.SIG_IGN)
sys.exit(error_code)