catching all errors in cal_grabber.py

This commit is contained in:
Lucas Oskorep
2022-07-22 15:58:18 -04:00
parent 968db61b63
commit 64475f3668
+2 -1
View File
@@ -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)