"""Raised by ``ForeignKey`` when the referred ``Table`` cannot be located."""
def __init__(self, message, tname):
- super(NoReferencedTableError, self).__init__(message)
+ NoReferenceError.__init__(self, message)
self.table_name = tname
class NoReferencedColumnError(NoReferenceError):
"""Raised by ``ForeignKey`` when the referred ``Column`` cannot be located."""
def __init__(self, message, tname, cname):
- super(NoReferencedColumnError, self).__init__(message)
+ NoReferenceError.__init__(self, message)
self.table_name = tname
self.column_name = cname