Skip to content

Commit c0105bd

Browse files
committedApr 26, 2019
Fix exception when reloading plugins
1 parent 5e4ea73 commit c0105bd

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
@@ -445,6 +445,9 @@ def _unloadPluginModules(packageName):
445445
mods = _plugin_modules[packageName]
446446

447447
for mod in mods:
448+
if not mod in sys.modules:
449+
continue
450+
448451
# if it looks like a Qt resource file, try to do a cleanup
449452
# otherwise we might experience a segfault next time the plugin is loaded
450453
# because Qt will try to access invalid plugin resource data

0 commit comments

Comments
 (0)
Please sign in to comment.