Skip to content

Commit 25d0351

Browse files
committedOct 17, 2016
[processing] fixed creating params and outputs from description strings
1 parent 52a0082 commit 25d0351

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎python/plugins/processing/core/outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def _resolveTemporary(self, alg):
396396

397397
def getOutputFromString(s):
398398
try:
399-
if "|" in s:
399+
if "|" in s and s.startswith("Output"):
400400
tokens = s.split("|")
401401
params = [t if str(t) != "None" else None for t in tokens[1:]]
402402
clazz = getattr(sys.modules[__name__], tokens[0])

‎python/plugins/processing/core/parameters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ def setValue(self, value):
15131513

15141514
def getParameterFromString(s):
15151515
# Try the parameter definitions used in description files
1516-
if '|' in s:
1516+
if '|' in s and (s.startswith("Parameter") or s.startswith("*Parameter")):
15171517
isAdvanced = False
15181518
if s.startswith("*"):
15191519
s = s[1:]
@@ -1535,3 +1535,5 @@ def getParameterFromString(s):
15351535
return param
15361536
except AttributeError:
15371537
pass
1538+
except:
1539+
return None

0 commit comments

Comments
 (0)
Please sign in to comment.