Fix exception handling in self-signed.py

This commit is contained in:
Théophile Diot 2024-03-12 09:57:49 +00:00
parent 0b8dc24125
commit 0694ab019a
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -132,6 +132,8 @@ try:
for first_server in skipped_servers:
JOB.del_cache("cert.pem", service_id=first_server)
JOB.del_cache("key.pem", service_id=first_server)
except SystemExit as e:
status = e.code
except:
status = 2
LOGGER.error(f"Exception while running self-signed.py :\n{format_exc()}")