Remove signal on hard_exit() to prevent exceptions
This commit is contained in:
parent
df96eb51e7
commit
39ea10cf07
@ -1,3 +1,4 @@
|
|||||||
|
import signal
|
||||||
import sys
|
import sys
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
@ -7,6 +8,7 @@ from facefusion.typing import ErrorCode
|
|||||||
|
|
||||||
|
|
||||||
def hard_exit(error_code : ErrorCode) -> None:
|
def hard_exit(error_code : ErrorCode) -> None:
|
||||||
|
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||||
sys.exit(error_code)
|
sys.exit(error_code)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user