From eaa7aa173e54942bc146c553eeded706670bb48d Mon Sep 17 00:00:00 2001 From: Privat33r-dev Date: Sat, 10 Aug 2024 21:52:07 +0200 Subject: [PATCH] Return early exit condition --- clairvoyance/oracle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clairvoyance/oracle.py b/clairvoyance/oracle.py index 3d8c7c0..e91407b 100644 --- a/clairvoyance/oracle.py +++ b/clairvoyance/oracle.py @@ -384,6 +384,9 @@ def __extract_matching_fields( name = ( name.rstrip("Input") + "Input" ) # Make sure `Input` is always once at the end + else: + log().debug(f"Unknown kind for `typeref`: '{error_message}'") + return None is_list = bool("[" in tk and "]" in tk) non_null_item = bool(is_list and "!]" in tk)