Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] better error capturing when connection to models repo fails
fixes #12515
  • Loading branch information
volaya committed Jun 26, 2015
1 parent 2112128 commit 38d5980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/GetScriptsAndModels.py
Expand Up @@ -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'))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 38d5980

Please sign in to comment.