From 7833c0bf1b5b8f6bc2ac4e44db9aba4cd997a89d Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Tue, 19 Nov 2024 12:55:06 +0100 Subject: [PATCH] Update core/schemas/observable.py --- core/schemas/observable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/schemas/observable.py b/core/schemas/observable.py index ed66a32f1..e97275ee9 100644 --- a/core/schemas/observable.py +++ b/core/schemas/observable.py @@ -58,7 +58,7 @@ def is_valid(self) -> bool: valid = True if hasattr(self, "validator"): try: - valid = self.__class__.validator(self.value) + valid = self.validator(self.value) except ValueError: return False return valid