Skip to content

Commit

Permalink
[processing] Do not throw exception if help file does not contain val…
Browse files Browse the repository at this point in the history
…id json
  • Loading branch information
volaya committed Jun 10, 2014
1 parent ae47c1a commit 744db2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/plugins/processing/gui/Help2Html.py
Expand Up @@ -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'
Expand Down

0 comments on commit 744db2f

Please sign in to comment.