diff --git a/src/caosdb/exceptions.py b/src/caosdb/exceptions.py
index 732d0e9fa95fee6141268175ef92a0029ed4cec1..3c6bcb85ab3510986c3fce33b50be7d0f55a719f 100644
--- a/src/caosdb/exceptions.py
+++ b/src/caosdb/exceptions.py
@@ -187,7 +187,7 @@ class TransactionError(CaosDBException):
         """
 
         test_set = self.errors if direct_children_only else self.all_errors
-        return [isinstance(err, error_t) for err in test_set].any()
+        return any([isinstance(err, error_t) for err in test_set])
 
     def add_error(self, error):
         """Add an error as a direct child to this TransactionError.