From a9464c14fc6dfc23613a1ec89446393fe6476f88 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 31 Oct 2012 17:31:12 +0100 Subject: * 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 --- src/mailman/core/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mailman/core/errors.py') 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.""" -- cgit v1.2.3-70-g09d2