From 157e7beae332ab1d74d4e5bef5764a4e0251b7e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Mon, 22 Jul 2019 16:17:12 +0200
Subject: [PATCH] FIX: codestyle likes inheritance from base class

---
 src/caosdb/exceptions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caosdb/exceptions.py b/src/caosdb/exceptions.py
index 25dfe747..5763bef4 100644
--- a/src/caosdb/exceptions.py
+++ b/src/caosdb/exceptions.py
@@ -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)
-- 
GitLab