pyuno/source/module/uno.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 1052ec9cff72e2810fdb934a85ab500d3b4ace35
Author:     Niko Fink <libreoff...@niko.fink.bayern>
AuthorDate: Tue Aug 9 09:17:00 2022 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Tue Aug 9 11:55:38 2022 +0200

    tdf#133123: fix crash when importing defusedxml.ElementTree after pyuno
    
    Change-Id: I89ac6108c679504c81dd9a439a4fb02e9e1adc07
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138007
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/pyuno/source/module/uno.py b/pyuno/source/module/uno.py
index 5fa7b135736d..b2a75bd03982 100644
--- a/pyuno/source/module/uno.py
+++ b/pyuno/source/module/uno.py
@@ -365,6 +365,8 @@ def _uno_import(name, *optargs, **kwargs):
         else:
             # How to create a module ??
             mod = pyuno.__class__(module)
+        if mod is None:
+            raise py_import_exc
 
         d = mod.__dict__
 

Reply via email to