Skip to content

Commit 551a617

Browse files
committed
Fix exception when reloading plugins
1 parent 8401db1 commit 551a617

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)