From c876798f478e45df9214869baac6550f2e7846a3 Mon Sep 17 00:00:00 2001 From: Seltyk Date: Fri, 4 Aug 2023 15:01:49 -0400 Subject: [PATCH] Check types to avoid AttributeError "It won't be inexcept... unexcept... it won't throw an exception" --Ulincsys Signed-off-by: Seltyk --- augur/application/db/models/augur_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/augur/application/db/models/augur_operations.py b/augur/application/db/models/augur_operations.py index 16a41cf248..a2e3a6c4d8 100644 --- a/augur/application/db/models/augur_operations.py +++ b/augur/application/db/models/augur_operations.py @@ -996,7 +996,7 @@ class ClientApplication(Base): subscriptions = relationship("Subscription") def __eq__(self, other): - return str(self.id) == str(other.id) + return isinstance(other, ClientApplication) and str(self.id) == str(other.id) @staticmethod def get_by_id(session, client_id):