rename var
This commit is contained in:
parent
a9c52394e7
commit
d32092c62f
|
@ -35,8 +35,8 @@ def check_timer(timer_name):
|
||||||
local_timezone_offset = timedelta(seconds=local_timezone_offset_seconds)
|
local_timezone_offset = timedelta(seconds=local_timezone_offset_seconds)
|
||||||
local_datetime = datetime.utcfromtimestamp(int(next_elapse) / 1e6) + local_timezone_offset
|
local_datetime = datetime.utcfromtimestamp(int(next_elapse) / 1e6) + local_timezone_offset
|
||||||
next_elapse_str = local_datetime.strftime("%m-%d-%Y %H:%M")
|
next_elapse_str = local_datetime.strftime("%m-%d-%Y %H:%M")
|
||||||
except ValueError as e:
|
except ValueError as v_err:
|
||||||
if 'is out of range' in repr(e):
|
if 'is out of range' in repr(v_err):
|
||||||
# This occurs whenever the timer resets.
|
# This occurs whenever the timer resets.
|
||||||
# "year 586524 is out of range"
|
# "year 586524 is out of range"
|
||||||
print(f'OK - {timer_name} has triggered.')
|
print(f'OK - {timer_name} has triggered.')
|
||||||
|
|
Loading…
Reference in New Issue