Skip to content
Snippets Groups Projects
Unverified Commit 9c20cd8a authored by Max Adamo's avatar Max Adamo
Browse files

exit if certbot fails

parent 0f9469e4
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ def run_certbot(cbot_domain, provider, wild_card=None):
cbot_out, cbot_err = cbot_child.communicate()
if cbot_child.returncode != 0:
msg = "error running certbot: {}".format(cbot_err.decode("utf-8"))
os_exit()
else:
decoded_msg = cbot_out.decode("utf-8")
msg = decoded_msg[:decoded_msg.rfind('\n')]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment