adding try inside the loop so it doesnt quit
This commit is contained in:
+2
-1
@@ -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.
|
:param time_to_update: normally set to -1 aka no limit. Time in minutes to continually ping the api for.
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
try:
|
|
||||||
start = None
|
start = None
|
||||||
while True:
|
while True:
|
||||||
|
|
||||||
|
try:
|
||||||
now = datetime.utcnow() # 'Z' indicates UTC time
|
now = datetime.utcnow() # 'Z' indicates UTC time
|
||||||
if start == None:
|
if start == None:
|
||||||
start = now
|
start = now
|
||||||
|
|||||||
Reference in New Issue
Block a user