diff options
author | Niko Fink <libreoffice@niko.fink.bayern> | 2022-08-09 09:17:00 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-09 11:55:38 +0200 |
commit | 1052ec9cff72e2810fdb934a85ab500d3b4ace35 (patch) | |
tree | da9b9f272e28422f99c2a838211c4c51debb4dc8 /pyuno/source | |
parent | a8ae24a8bd7bfffa75af9d0dc50765d51df9c720 (diff) |
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.stahl@allotropia.de>
Diffstat (limited to 'pyuno/source')
-rw-r--r-- | pyuno/source/module/uno.py | 2 |
1 files changed, 2 insertions, 0 deletions
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__ |