Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9871 from qgis/backport-9866-to-release-3_4
[Backport release-3_4] Fix exception when reloading plugins
  • Loading branch information
rldhont committed May 10, 2019
2 parents b054222 + 966a6e6 commit 90abfe2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/utils.py
Expand Up @@ -404,6 +404,9 @@ def _unloadPluginModules(packageName):
mods = _plugin_modules[packageName]

for mod in mods:
if not mod in sys.modules:
continue

# if it looks like a Qt resource file, try to do a cleanup
# otherwise we might experience a segfault next time the plugin is loaded
# because Qt will try to access invalid plugin resource data
Expand Down

0 comments on commit 90abfe2

Please sign in to comment.