From d32092c62ff86ad00c8cb3b5874e1a0953f3482b Mon Sep 17 00:00:00 2001 From: Cyberes Date: Mon, 4 Mar 2024 10:04:38 -0700 Subject: [PATCH] rename var --- check_systemd_timer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_systemd_timer.py b/check_systemd_timer.py index e475a59..d15779d 100755 --- a/check_systemd_timer.py +++ b/check_systemd_timer.py @@ -35,8 +35,8 @@ def check_timer(timer_name): local_timezone_offset = timedelta(seconds=local_timezone_offset_seconds) local_datetime = datetime.utcfromtimestamp(int(next_elapse) / 1e6) + local_timezone_offset next_elapse_str = local_datetime.strftime("%m-%d-%Y %H:%M") - except ValueError as e: - if 'is out of range' in repr(e): + except ValueError as v_err: + if 'is out of range' in repr(v_err): # This occurs whenever the timer resets. # "year 586524 is out of range" print(f'OK - {timer_name} has triggered.')