Catch more Gdrive errors (#2233)

This commit is contained in:
Ozzieisaacs
2021-12-23 11:13:08 +01:00
parent d45085215f
commit bdedec90dd
3 changed files with 10 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ def revoke_watch_gdrive():
try:
gdriveutils.stopChannel(gdriveutils.Gdrive.Instance().drive, last_watch_response['id'],
last_watch_response['resourceId'])
except HttpError:
except (HttpError, AttributeError):
pass
config.config_google_drive_watch_changes_response = {}
config.save()