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

[pull] V3/develop from Cog-Creators:V3/develop #140

Merged
merged 5 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
.. Red changelogs

Redbot 3.5.16 (2025-02-06)
==========================

| Thanks to all these amazing people that contributed to this release:
| :ghuser:`Flame442`, :ghuser:`Jackenmen`

This is a hotfix release changing our implementation to prevent crash at startup
when invalid value of global locale/regional format configuration is encountered.
We have seen a few reports of this occurring and we believe that this was caused by
some 3rd-party cog(s) passing invalid values to Red <3.5 i18n APIs as those versions
did not validate the input in some scenarios. During startup, Red will now simply
log a warning, if it encounters incorrect global locale/regional format configuration
and reset it to a known valid value.

----

Redbot 3.5.15 (2025-02-03)
==========================

Expand Down
2 changes: 1 addition & 1 deletion redbot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _early_init():


# This is bumped automatically by release workflow (`.github/workflows/scripts/bump_version.py`)
_VERSION = "3.5.16.dev1"
_VERSION = "3.5.17.dev1"

__version__, version_info = VersionInfo._get_version()

Expand Down
4 changes: 2 additions & 2 deletions redbot/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ async def _pre_login(self) -> None:
i18n_locale = await self._config.locale()
try:
_i18n.set_global_locale(i18n_locale)
except ValueError:
except (ValueError, TypeError):
log.warning(
"The bot's global locale was set to an invalid value (%r)"
" and will be reset to default (%s).",
Expand All @@ -1159,7 +1159,7 @@ async def _pre_login(self) -> None:
i18n_regional_format = await self._config.regional_format()
try:
_i18n.set_global_regional_format(i18n_regional_format)
except ValueError:
except (ValueError, TypeError):
log.warning(
"The bot's global regional format was set to an invalid value (%r)"
" and will be reset to default (which is to inherit global locale, i.e. %s).",
Expand Down
6 changes: 3 additions & 3 deletions redbot/core/locales/ar-SA.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/bg-BG.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/cs-CZ.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/da-DK.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/de-DE.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/es-ES.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/fi-FI.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/fr-FR.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/hi-IN.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/hr-HR.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/hu-HU.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/id-ID.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/it-IT.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/ja-JP.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions redbot/core/locales/ko-KR.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading