Skip to content

Commit 90abfe2

Browse files
authored
Merge pull request #9871 from qgis/backport-9866-to-release-3_4
[Backport release-3_4] Fix exception when reloading plugins
2 parents b054222 + 966a6e6 commit 90abfe2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ def _unloadPluginModules(packageName):
404404
mods = _plugin_modules[packageName]
405405

406406
for mod in mods:
407+
if not mod in sys.modules:
408+
continue
409+
407410
# if it looks like a Qt resource file, try to do a cleanup
408411
# otherwise we might experience a segfault next time the plugin is loaded
409412
# because Qt will try to access invalid plugin resource data

0 commit comments

Comments
 (0)