adding try inside the loop so it doesnt quit

This commit is contained in:
Lucas Oskorep
2022-06-23 01:39:43 -04:00
parent befc5f9f81
commit 6c0859e072
+2 -1
View File
@@ -28,9 +28,10 @@ class CalGrab(object):
:param time_to_update: normally set to -1 aka no limit. Time in minutes to continually ping the api for.
:return: None
"""
try:
start = None
while True:
try:
now = datetime.utcnow() # 'Z' indicates UTC time
if start == None:
start = now