aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cloud_mdir_sync/gmail.py4
-rw-r--r--cloud_mdir_sync/office365.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/cloud_mdir_sync/gmail.py b/cloud_mdir_sync/gmail.py
index dee12f5..3d36e1c 100644
--- a/cloud_mdir_sync/gmail.py
+++ b/cloud_mdir_sync/gmail.py
@@ -57,8 +57,8 @@ def _retry_protect(func):
# Other errors we retry after resetting the mailbox
raise
except (asyncio.TimeoutError,
- aiohttp.client_exceptions.ClientError):
- self.cfg.logger.debug(f"Got non-HTTP Error in {func}")
+ aiohttp.client_exceptions.ClientError) as e:
+ self.cfg.logger.debug(f"Got non-HTTP Error in {func} {e!r}")
await asyncio.sleep(10)
continue
diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py
index fa130a8..7425cad 100644
--- a/cloud_mdir_sync/office365.py
+++ b/cloud_mdir_sync/office365.py
@@ -70,8 +70,8 @@ def _retry_protect(func):
# Other errors we retry after resetting the mailbox
raise
except (asyncio.TimeoutError,
- aiohttp.client_exceptions.ClientError):
- self.cfg.logger.debug(f"Got non-HTTP Error in {func}")
+ aiohttp.client_exceptions.ClientError) as e:
+ self.cfg.logger.debug(f"Got non-HTTP Error in {func} {e!r}")
await asyncio.sleep(10)
continue