Skip to content
Snippets Groups Projects
Commit 157e7bea authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: codestyle likes inheritance from base class

parent 16f1a065
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,7 @@ class EntityError(TransactionError):
def _convert(self):
t = self._calc_bases()
# TODO is it really a good idea to create dynamically types here?
newtype = type('EntityMultiError', t, {})
newtype = type('EntityMultiError', t+(Exception,), {})
newinstance = newtype(error=self.error, entity=self.entity)
setattr(newinstance, 'msg', self.msg)
setattr(newinstance, 'errors', self.errors)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment