From 4de1df3dcb6bf1976e79c9440c6c15ceabbd4cb2 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 3 Sep 2024 20:39:39 -0600 Subject: [PATCH] fix --- check_home_assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_home_assistant.py b/check_home_assistant.py index a782af9..c2eb3ad 100755 --- a/check_home_assistant.py +++ b/check_home_assistant.py @@ -23,7 +23,7 @@ try: state = state_mes['message'] except: print('Unknown: failed to fetch data') - traceback.print_exc() + print(traceback.format_exc()) sys.exit(nagios.STATE_CRIT) if res.status_code == 200: