changeset 61 | d85482575349 |
parent 55 | 15c873f94ba6 |
child 76 | 14c0a092d7d2 |
--- a/VirtualMailManager/Exceptions.py Sat Aug 23 20:30:36 2008 +0000 +++ b/VirtualMailManager/Exceptions.py Sat Aug 23 22:25:21 2008 +0000 @@ -18,6 +18,9 @@ def __init__(self, msg, code): Exception.__init__(self, msg) self._code = int(code) + ### for older python versions, like py 2.4.4 on OpenBSD 4.2 + if not hasattr(self, 'message'): + self.message = msg def msg(self): """Returns the exception message."""