From e55a1e255485381e6a7a0fbc89a2fd46a9b7058c Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 21 Sep 2020 14:28:06 +0200 Subject: [PATCH] STY: More autopep --- src/caosdb/common/models.py | 3 ++- src/caosdb/exceptions.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index 4d2510ca..784def89 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -3675,7 +3675,8 @@ class Query(): if unique: if len(cresp) > 1 and raise_exception_on_error: - raise AmbiguityException("Query '{}' wasn't unique.".format(self.q)) + raise AmbiguityException( + "Query '{}' wasn't unique.".format(self.q)) elif len(cresp) == 0 and raise_exception_on_error: ee = EntityDoesNotExistError( "Query '{}' found no results.".format(self.q)) diff --git a/src/caosdb/exceptions.py b/src/caosdb/exceptions.py index c54a894f..f837cdd3 100644 --- a/src/caosdb/exceptions.py +++ b/src/caosdb/exceptions.py @@ -226,7 +226,6 @@ class TransactionError(CaosDBException): raise TypeError( "Argument is to be an EntityError or a list of EntityErrors.") - def _repr_reasons(self, indent): if self.errors is not None and len(self.errors) > 0: ret = "\n" + indent + " +--| REASONS |--" -- GitLab