Merge pull request #430 from openzim/set_return_code

Properly exit with code
This commit is contained in:
benoit74 2024-11-08 15:40:50 +01:00 committed by GitHub
commit e9adc38856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -685,7 +685,7 @@ def sigint_handler(*args): # noqa: ARG001
def zimit():
run(sys.argv[1:])
sys.exit(run(sys.argv[1:]))
signal.signal(signal.SIGINT, sigint_handler)