diff --git a/facefusion/exit_helper.py b/facefusion/exit_helper.py index e2991b43..5c30acab 100644 --- a/facefusion/exit_helper.py +++ b/facefusion/exit_helper.py @@ -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)