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