mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fix: Replace bare except
with except Exception
in get_user_language()
method
This commit is contained in:
parent
541ab83f15
commit
86d37e0c25
1 changed files with 1 additions and 1 deletions
|
@ -745,7 +745,7 @@ class Coder:
|
|||
lang = locale.getlocale()[0]
|
||||
if lang:
|
||||
return lang.split("_")[0] # Extract just the language code
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
for env_var in ["LANG", "LANGUAGE", "LC_ALL", "LC_MESSAGES"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue