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 08:28:01 UTC
[incubator-ponymail-foal] 03/05: debug print if exception
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
commit 2f814806d09964ca3d8a0157e72ed14bfde08797
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 10 10:26:21 2020 +0200
debug print if exception
---
server/plugins/offloader.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/plugins/offloader.py b/server/plugins/offloader.py
index 0ee9823..0f6fea1 100644
--- a/server/plugins/offloader.py
+++ b/server/plugins/offloader.py
@@ -44,5 +44,7 @@ class ExecutorPool:
if DEBUG:
print("[Runner] Done with task %r, put runner back in queue" % func)
if isinstance(rv, BaseException):
+ if DEBUG:
+ print("[Runner] Task %r encountered an exception during run." % func)
raise rv
return rv