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.
|
||||
:return: None
|
||||
"""
|
||||
try:
|
||||
start = None
|
||||
while True:
|
||||
|
||||
try:
|
||||
now = datetime.utcnow() # 'Z' indicates UTC time
|
||||
if start == None:
|
||||
start = now
|
||||
|
||||
Reference in New Issue
Block a user