Skip to content
Browse files
Added more error handling for cases when processing help causes an error
  • Loading branch information
timlinux committed Apr 6, 2017
1 parent 8a44161 commit 2bdef02bfa366bac4148a3a59f447489819a8dd6
Showing with 8 additions and 1 deletion.
  1. +8 −1 python/plugins/processing/gui/
@@ -268,7 +268,14 @@ def setHelp(self, reply, item):
html ='<h2>No detailed description available for this script</h2>')
content = bytes(reply.readAll()).decode('utf8')
descriptions = json.loads(content)
descriptions = json.loads(content)
except json.decoder.JSONDecodeError:
html ='<h2>JSON Decoding Error - could not load help</h2>')
except Exception:
html ='<h2>Unspecified Error - could not load help</h2>')

html = '<h2>%s</h2>' %
html +='<p><b>Description:</b> {0}</p>').format(getDescription(ALG_DESC, descriptions))
html +='<p><b>Created by:</b> {0}').format(getDescription(ALG_CREATOR, descriptions))

0 comments on commit 2bdef02

Please sign in to comment.