From e36655c82532af737bb3e897a0f3520c1862cbad Mon Sep 17 00:00:00 2001 From: Ella Wu <602725+ewu63@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:02:42 -0700 Subject: [PATCH] Use default UserWarning --- pyoptsparse/pyOpt_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyoptsparse/pyOpt_utils.py b/pyoptsparse/pyOpt_utils.py index 22fe84fa..35eb7400 100644 --- a/pyoptsparse/pyOpt_utils.py +++ b/pyoptsparse/pyOpt_utils.py @@ -603,7 +603,6 @@ def try_import_compiled_module_from_path(module_name: str, path: Optional[str] = if path is not None: warnings.warn( f"{module_name} module could not be imported from {path}.", - ImportWarning, stacklevel=2, ) module = str(e)