mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 08:34:31 +08:00
disable cache when retrying
This commit is contained in:
@@ -3,7 +3,6 @@ import os
|
||||
import logging
|
||||
import json
|
||||
from datetime import datetime
|
||||
import requests
|
||||
|
||||
# Configure logging
|
||||
log_directory = os.getenv("LOG_DIR", "logs")
|
||||
|
||||
@@ -156,7 +156,7 @@ def crawl_github_files(
|
||||
return []
|
||||
|
||||
if response.status_code != 200:
|
||||
print(f"Error fetching the branches of {owner}/{path}: {response.status_code} - {response.text}")
|
||||
print(f"Error fetching the branches of {owner}/{repo}: {response.status_code} - {response.text}")
|
||||
return []
|
||||
|
||||
return response.json()
|
||||
|
||||
Reference in New Issue
Block a user