fix: replace bare except with except Exception in get_git_info

This commit is contained in:
Paul Gauthier (aider) 2024-08-30 08:16:08 -07:00
parent 0fc9928762
commit 9667e1d102

View file

@ -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"