mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Simplify exception handling in platform info retrieval
This commit is contained in:
parent
f9e0a99064
commit
f3a042dcdf
1 changed files with 1 additions and 1 deletions
|
@ -1033,7 +1033,7 @@ class Coder:
|
|||
platform_text = ""
|
||||
try:
|
||||
platform_text = f"- Platform: {platform.platform()}\n"
|
||||
except (Exception, KeyError):
|
||||
except KeyError:
|
||||
# Skip platform info if it can't be retrieved
|
||||
platform_text = "- Platform information unavailable\n"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue