mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +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 = ""
|
platform_text = ""
|
||||||
try:
|
try:
|
||||||
platform_text = f"- Platform: {platform.platform()}\n"
|
platform_text = f"- Platform: {platform.platform()}\n"
|
||||||
except (Exception, KeyError):
|
except KeyError:
|
||||||
# Skip platform info if it can't be retrieved
|
# Skip platform info if it can't be retrieved
|
||||||
platform_text = "- Platform information unavailable\n"
|
platform_text = "- Platform information unavailable\n"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue