We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6f162f commit b289423Copy full SHA for b289423
1 file changed
cq_editor/widgets/editor.py
@@ -551,9 +551,13 @@ def get_imported_module_paths(self, module_path):
551
except Exception as err:
552
# The module finder has trouble when CadQuery is imported in the top level script and in
553
# imported modules. The warning about it can be ignored.
554
- if "cadquery" not in finder.badmodules or (
555
- "cadquery" in finder.badmodules and len(finder.badmodules) > 1
+ if (
+ (isinstance(err, AttributeError) and "is_package" in str(err))
556
+ or ("cadquery" not in finder.badmodules)
557
+ or ("cadquery" in finder.badmodules and len(finder.badmodules) > 1)
558
):
559
+ pass
560
+ else:
561
self._logger.warning(
562
f"Cannot determine imported modules in {module_path}: {type(err).__name__} {err}"
563
)
0 commit comments