diff options
Diffstat (limited to 'sources/pyside-tools/deploy_lib/python_helper.py')
-rw-r--r-- | sources/pyside-tools/deploy_lib/python_helper.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/pyside-tools/deploy_lib/python_helper.py b/sources/pyside-tools/deploy_lib/python_helper.py index 32bf04f2c..7a91ddfa1 100644 --- a/sources/pyside-tools/deploy_lib/python_helper.py +++ b/sources/pyside-tools/deploy_lib/python_helper.py @@ -62,10 +62,9 @@ def find_pyside_modules(project_dir: Path, extra_ignore_dirs: List[Path] = None, full_mod_name = imported_module.name if full_mod_name == "PySide6": logging.warning(IMPORT_WARNING_PYSIDE.format(str(py_file))) - except Exception as e: - logging.error(f"[DEPLOY] Finding module import failed on file {str(py_file)}") - raise e + raise RuntimeError(f"[DEPLOY] Finding module import failed on file {str(py_file)} with " + f"error {e}") return set(modules) |