Skip to content

Conversation

@aj-fuentes
Copy link
Contributor

@aj-fuentes aj-fuentes commented Oct 16, 2025

It's catch_warnings not catchwarnings
https://docs.python.org/2/library/warnings.html#warnings.catch_warnings
https://docs.python.org/3/library/warnings.html#warnings.catch_warnings

The context manager is meant to allow for specific filters that would be
reverted once it exists. This patch corrects the usage.

Oversight of odoo-dev@fbd0b4f

@robodoo
Copy link
Contributor

robodoo commented Oct 16, 2025

Pull request status dashboard

@aj-fuentes
Copy link
Contributor Author

@aj-fuentes
Copy link
Contributor Author

upgradeci retry with always theme_*

@aj-fuentes
Copy link
Contributor Author

upgradeci retry with always theme_* in all versions

@aj-fuentes aj-fuentes force-pushed the master-fix_typo-afu branch 2 times, most recently from e520f98 to d95f37f Compare October 16, 2025 12:43
@aj-fuentes aj-fuentes changed the title [FIX] util/modules: fix typo [FIX] util/modules: fix wrong usage of warnings filtering Oct 16, 2025
It's `catch_warnings` not `catchwarnings`
https://docs.python.org/2/library/warnings.html#warnings.catch_warnings
https://docs.python.org/3/library/warnings.html#warnings.catch_warnings

The context manager is meant to allow for specific filters that would be
reverted once it exists. This patch corrects the usage.

Oversight of fbd0b4f
@aj-fuentes
Copy link
Contributor Author

@robodoo r+

cc: @KangOl

@aj-fuentes
Copy link
Contributor Author

@robodoo priority

robodoo pushed a commit that referenced this pull request Oct 17, 2025
It's `catch_warnings` not `catchwarnings`
https://docs.python.org/2/library/warnings.html#warnings.catch_warnings
https://docs.python.org/3/library/warnings.html#warnings.catch_warnings

The context manager is meant to allow for specific filters that would be
reverted once it exists. This patch corrects the usage.

Oversight of fbd0b4f

closes #342

Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
robodoo pushed a commit that referenced this pull request Oct 17, 2025
It's `catch_warnings` not `catchwarnings`
https://docs.python.org/2/library/warnings.html#warnings.catch_warnings
https://docs.python.org/3/library/warnings.html#warnings.catch_warnings

The context manager is meant to allow for specific filters that would be
reverted once it exists. This patch corrects the usage.

Oversight of fbd0b4f

closes #342

Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
@robodoo robodoo closed this in 59e6b42 Oct 17, 2025
@robodoo robodoo added the 19.1 label Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants