From d1265af8288a6244dec61b4d3a87cb104029a239 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 17 Jan 2023 10:04:10 -0500 Subject: [PATCH] Handle more errors subprocess may throw other errors that aren't calledprocesserrors, in newer python versions. Handle the case more broadly. --- confluent_server/bin/osdeploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index c614d323..cedb6a9c 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -285,7 +285,7 @@ def initialize(cmdset): try: subprocess.check_call(['systemctl', 'try-restart', 'httpd']) print('HTTP server has been restarted if it was running') - except subprocess.CalledProcessError: + except Exception: emprint('New HTTPS certificates generated, restart the web server manually') elif os.path.exists('/usr/lib/systemd/system/apache2.service'): try: