From 9eb4ffce7fdc4a43739946beecb5254dd201eab4 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Fri, 21 Mar 2025 09:55:09 -0700 Subject: [PATCH] ignore no teams.json file --- insights.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/insights.py b/insights.py index 2cff5aa..2c60d01 100644 --- a/insights.py +++ b/insights.py @@ -60,8 +60,11 @@ async def getInsights(repoURL: str, attempt: int = 0) -> Dict[str, str|None] | N async def main() -> None: teamsOriginal: List[Dict] = [] - with open("teams.json", "r") as file: - teamsOriginal = json.load(file) + try: + with open("teams.json", "r") as file: + teamsOriginal = json.load(file) + except FileNotFoundError: + pass teams: List[Dict] = []