Skip to content
Permalink
Browse files
[processing] Do not throw exception if help file does not contain val…
…id json
  • Loading branch information
volaya committed Jun 10, 2014
1 parent ae47c1a commit 744db2ff5a4d7abf1959178842c026247b589d39
Showing with 5 additions and 2 deletions.
  1. +5 −2 python/plugins/processing/gui/Help2Html.py
@@ -57,8 +57,11 @@ def getHtmlFromRstFile(rst):
def getHtmlFromHelpFile(alg, helpFile):
if not os.path.exists(helpFile):
return None
with open(helpFile) as f:
descriptions = json.load(f)
try:
with open(helpFile) as f:
descriptions = json.load(f)
except:
return None
s = '<html><body><h2>Algorithm description</h2>\n'
s += '<p>' + getDescription(ALG_DESC, descriptions) + '</p>\n'
s += '<h2>Input parameters</h2>\n'

0 comments on commit 744db2f

Please sign in to comment.