Skip to content

Commit 966a6e6

Browse files
committedApr 26, 2019
Fix exception when reloading plugins
1 parent 175426e commit 966a6e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎python/utils.py

Lines changed: 3 additions & 0 deletions
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)