Skip to content
Permalink
Browse files

[processing] better error capturing when connection to models repo fails

fixes #12515
  • Loading branch information
volaya committed Jun 26, 2015
1 parent 2112128 commit 38d598008ec9cdb12949f78daac05c80db1ecc05
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/GetScriptsAndModels.py
@@ -106,7 +106,7 @@ def execute(self):
dlg.exec_()
if dlg.updateToolbox:
self.toolbox.updateProvider('model')
except HTTPError:
except (HTTPError, URLError):
QMessageBox.critical(iface.mainWindow(),
self.tr('Connection problem', 'GetModelsAction'),
self.tr('Could not connect to scripts/models repository', 'GetModelsAction'))
@@ -156,8 +156,8 @@ def __init__(self, resourceType):
self.icon = QIcon(os.path.join(pluginPath, 'images', 'r.png'))

self.lastSelectedItem = None
self.populateTree()
self.updateToolbox = False
self.populateTree()
self.buttonBox.accepted.connect(self.okPressed)
self.buttonBox.rejected.connect(self.cancelPressed)
self.tree.currentItemChanged .connect(self.currentItemChanged)

0 comments on commit 38d5980

Please sign in to comment.
You can’t perform that action at this time.