+2008-05-05 Mark Hymers <mhy@debian.org>
+
+ * daklib/dak_exceptions.py: Add a default message and tidy up our string
+ representation
+
2008-05-05 Joerg Jaspert <joerg@debian.org>
* daklib/dak_exceptions.py: New file, central place for all those
message -- explanation of the error
"""
- def __init__(self, message):
- self.args = message
- self.message = message
+ def __init__(self, message=""):
+ self.args = str(message)
+ self.message = str(message)
+
+ def __str__(self):
+ return self.message
__all__ = ['DakError']