You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/10 09:51:08 UTC
[incubator-ponymail-foal] branch master updated: spit out why
exactly this failed.
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 100d9d4 spit out why exactly this failed.
100d9d4 is described below
commit 100d9d42f56ddf4e6981c2b08195d623c3adcf0d
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 10 11:48:07 2020 +0200
spit out why exactly this failed.
---
server/plugins/background.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/server/plugins/background.py b/server/plugins/background.py
index 69095bc..dc43d69 100644
--- a/server/plugins/background.py
+++ b/server/plugins/background.py
@@ -202,11 +202,11 @@ async def run_tasks(server: plugins.server.BaseServer):
async with ProgTimer("Gathering list of archived mailing lists"):
try:
server.data.lists = await get_lists(server.config.database)
- except plugins.database.DBError:
- print("Could not fetch lists - database down or not connected?!")
+ except plugins.database.DBError as e:
+ print("Could not fetch lists - database down or not connected: %s" % e)
async with ProgTimer("Gathering bi-weekly activity stats"):
try:
server.data.activity = await get_public_activity(server.config.database)
- except plugins.database.DBError:
- print("Could not fetch activity data - database down or not connected?!")
+ except plugins.database.DBError as e:
+ print("Could not fetch activity data - database down or not connected: %s" % e)
await asyncio.sleep(server.config.tasks.refresh_rate)