Skip to content
Snippets Groups Projects
Commit 19095398 authored by florian's avatar florian
Browse files

BUG: Correct usage of any

parent 5458ca5b
No related branches found
No related tags found
No related merge requests found
...@@ -187,7 +187,7 @@ class TransactionError(CaosDBException): ...@@ -187,7 +187,7 @@ class TransactionError(CaosDBException):
""" """
test_set = self.errors if direct_children_only else self.all_errors 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): def add_error(self, error):
"""Add an error as a direct child to this TransactionError. """Add an error as a direct child to this TransactionError.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment