From ae49c7cedcb79ff8a062aa2b933d74a0113faef0 Mon Sep 17 00:00:00 2001 From: Marcel Santee <47259357+SanteeMarcel@users.noreply.github.com> Date: Sat, 19 Apr 2025 22:08:54 -0300 Subject: [PATCH] Raise zero files fetched error before proceeding --- nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes.py b/nodes.py index ee3d645..67ab034 100644 --- a/nodes.py +++ b/nodes.py @@ -66,6 +66,8 @@ class FetchRepo(Node): # Convert dict to list of tuples: [(path, content), ...] files_list = list(result.get("files", {}).items()) + if len(files_list) == 0: + raise(ValueError("Failed to fetch files")) print(f"Fetched {len(files_list)} files.") return files_list