summaryrefslogtreecommitdiff
path: root/src/mailman/core/errors.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-10-31 17:37:22 +0100
committerBarry Warsaw2012-10-31 17:37:22 +0100
commite60c151e0148c2f53eabe883f5921378ca6a845c (patch)
tree74a926cfe64066ebffcf9adb89e7672289173d84 /src/mailman/core/errors.py
parenta1666479d87e26e5c79dd1cf507b8ef0472c59aa (diff)
parenta9464c14fc6dfc23613a1ec89446393fe6476f88 (diff)
downloadmailman-e60c151e0148c2f53eabe883f5921378ca6a845c.tar.gz
mailman-e60c151e0148c2f53eabe883f5921378ca6a845c.tar.zst
mailman-e60c151e0148c2f53eabe883f5921378ca6a845c.zip
* Python 2.7 is not required. Python 2.6 is no longer officially supported.
The code base is now also `python2.7 -3` clean, although there are still some warnings in 3rd party dependencies. LP: #1073506
Diffstat (limited to 'src/mailman/core/errors.py')
-rw-r--r--src/mailman/core/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/core/errors.py b/src/mailman/core/errors.py
index 95a318ca6..42b536d46 100644
--- a/src/mailman/core/errors.py
+++ b/src/mailman/core/errors.py
@@ -90,6 +90,12 @@ def _(s):
class HandlerError(MailmanError):
"""Base class for all handler errors."""
+ def __init__(self, message=None):
+ self.message = message
+
+ def __str__(self):
+ return self.message
+
class HoldMessage(HandlerError):
"""Base class for all message-being-held short circuits."""