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: