mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix: replace bare except with except Exception in get_git_info
This commit is contained in:
parent
0fc9928762
commit
9667e1d102
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue