Call the super methods for the exception classes.
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 28 Aug 2009 21:19:30 -0400 |
parents |
a818bb6f9119
|
children |
40775a8b4167
|
branches/tags |
(none) |
files |
t.py |
Changes
--- a/t.py Fri Aug 28 21:18:26 2009 -0400
+++ b/t.py Fri Aug 28 21:19:30 2009 -0400
@@ -13,12 +13,14 @@
class AmbiguousPrefix(Exception):
"""Raised when trying to use a prefix that could identify multiple tasks."""
def __init__(self, prefix):
+ super(Exception, self).__init__()
self.prefix = prefix
class UnknownPrefix(Exception):
"""Raised when trying to use a prefix that does not match any tasks."""
def __init__(self, prefix):
+ super(Exception, self).__init__()
self.prefix = prefix