Commit 59e6b42
committed
[FIX] util/modules: fix wrong usage of warnings filtering
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>1 parent ff3001a commit 59e6b42
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
0 commit comments