Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid locale error #2766

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

MattHag
Copy link
Collaborator

@MattHag MattHag commented Jan 10, 2025

Fixes #2765

@MattHag MattHag force-pushed the fix_invalid_locale_error branch 3 times, most recently from 2a21c47 to 4e50c7c Compare January 10, 2025 20:27
Copy link
Collaborator

@pfps pfps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@pfps
Copy link
Collaborator

pfps commented Jan 10, 2025

What's the failing test mean?

@MattHag MattHag force-pushed the fix_invalid_locale_error branch from 4e50c7c to 4f6fdd7 Compare January 10, 2025 21:28
Generalize exception to catch anything locale error.

Related pwr-Solaar#2507
Fixes pwr-Solaar#2765
@MattHag MattHag force-pushed the fix_invalid_locale_error branch from 4f6fdd7 to 5115fb3 Compare January 10, 2025 21:28
@MattHag
Copy link
Collaborator Author

MattHag commented Jan 10, 2025

It still does not patch it properly on Linux, so removed that part of the change. The test need to pass independent of the system locale.

@pfps pfps merged commit 3de575b into pwr-Solaar:master Jan 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

locale.Error: unsupported locale setting when locale is set to an unsupported value
2 participants