catching all errors in cal_grabber.py
This commit is contained in:
+2
-1
@@ -59,5 +59,6 @@ class CalGrab(object):
|
|||||||
if time_to_update > 0 and (now - start).total_seconds() > time_to_update:
|
if time_to_update > 0 and (now - start).total_seconds() > time_to_update:
|
||||||
return
|
return
|
||||||
sleep(frequency)
|
sleep(frequency)
|
||||||
except HttpError as error:
|
except Exception as error:
|
||||||
print('An error occurred: %s' % error)
|
print('An error occurred: %s' % error)
|
||||||
|
sleep(60)
|
||||||
|
|||||||
Reference in New Issue
Block a user