aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/gmail.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_mdir_sync/gmail.py')
-rw-r--r--cloud_mdir_sync/gmail.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloud_mdir_sync/gmail.py b/cloud_mdir_sync/gmail.py
index 121e3b6..d17e536 100644
--- a/cloud_mdir_sync/gmail.py
+++ b/cloud_mdir_sync/gmail.py
@@ -36,6 +36,7 @@ def _retry_protect(func):
e.code == 400 or # Bad Request
e.code == 509 or # Bandwidth Limit Exceeded
e.code == 429 or # Too Many Requests
+ e.code == 502 or # Bad Gateway
e.code == 504 or # Gateway Timeout
e.code == 200): # Success, but error JSON
self.cfg.logger.error(f"Gmail returns {e}, delaying")