Skip to content

Commit f3e472f

Browse files
committed
WIP
1 parent 1e0805b commit f3e472f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/interpreter/_import/spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def find_module(
153153
):
154154
try:
155155
with warnings.catch_warnings():
156-
warnings.filterwarnings("ignore", category=UserWarning)
156+
warnings.filterwarnings("ignore", category=Warning)
157157
spec = importlib.util.find_spec(".".join((*processed, modname)))
158158
except ValueError:
159159
# `find_spec` raises a ValueError for modules that are missing their `__spec__`

0 commit comments

Comments
 (0)