Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid python error for depending plugin not found #48208

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

domi4484
Copy link
Contributor

Avoid showing the following error when a dependent plugin was not found. Can be tested trying installing the experimental Model Baker plugin now (version v7.1.0)

Fehler bei der Ausführung folgenden Codes:
pyplugin_installer.instance().installPlugin('QgisModelBaker', stable=False)


Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 333, in installPlugin
    self.processDependencies(plugin["id"])
  File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 682, in processDependencies
    dlg = QgsPluginDependenciesDialog(plugin_id, to_install, to_upgrade, not_found)
  File "/usr/share/qgis/python/pyplugin_installer/qgsplugindependenciesdialog.py", line 92, in __init__
    _make_row(data, i, name)
  File "/usr/share/qgis/python/pyplugin_installer/qgsplugindependenciesdialog.py", line 63, in _make_row
    widget.use_stable_version = data['use_stable_version']
KeyError: 'use_stable_version'

@github-actions github-actions bot added this to the 3.26.0 milestone Apr 13, 2022
Copy link
Contributor

@signedav signedav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants