From 9667e1d1026034172fc0945e31ac79f45558eace Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 30 Aug 2024 08:16:08 -0700 Subject: [PATCH] fix: replace bare except with except Exception in get_git_info --- aider/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/report.py b/aider/report.py index 294072f0a..513e341c0 100644 --- a/aider/report.py +++ b/aider/report.py @@ -35,7 +35,7 @@ def get_git_info(): ) commit = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip() return f"Git version: {git_version}\nBranch: {branch}\nCommit: {commit}" - except: + except Exception: return "Git information unavailable"