ignore no teams.json file

This commit is contained in:
SowinskiBraeden committed 2025-03-21 09:55:09 -07:00
1 parent 0c8120a9a5
commit 9eb4ffce7f
1 file changed
+5 -2
+5 -2
View File
@@ -60,8 +60,11 @@ async def getInsights(repoURL: str, attempt: int = 0) -> Dict[str, str|None] | N
async def main() -> None: async def main() -> None:
teamsOriginal: List[Dict] = [] teamsOriginal: List[Dict] = []
with open("teams.json", "r") as file: try:
teamsOriginal = json.load(file) with open("teams.json", "r") as file:
teamsOriginal = json.load(file)
except FileNotFoundError:
pass
teams: List[Dict] = [] teams: List[Dict] = []