Skip to content
Permalink
Browse files

[Processing] Fix getParameterDescriptions

Add import json for script and r
return descs and not None
  • Loading branch information
rldhont committed May 31, 2016
1 parent 52f3ca6 commit 7270fda13d8090160af757aa92ba484752d14a7e
@@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

import os
import json

from PyQt4.QtGui import QIcon

@@ -458,7 +459,7 @@ def getParameterDescriptions(self):
if param.name in descriptions:
descs[param.name] = unicode(descriptions[param.name])
except:
return None
return descs
return descs

def checkBeforeOpeningParametersDialog(self):
@@ -27,6 +27,8 @@

import os
from PyQt4 import QtGui
import re
import json
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.gui.Help2Html import getHtmlFromHelpFile
from processing.core.parameters import ParameterRaster
@@ -358,5 +360,5 @@ def getParameterDescriptions(self):
if param.name in descriptions:
descs[param.name] = unicode(descriptions[param.name])
except:
return None
return descs
return descs

0 comments on commit 7270fda

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