Skip to content

Commit

Permalink
Fix compatiblity with 3.4 (fixes #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 7, 2019
1 parent 7dac274 commit 11f91a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion processing_r/processing/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,13 @@ def process_parameter_line(self, line):
self.addParameter(output)
else:
line = RUtils.upgrade_parameter_line(line)
param = getParameterFromString(line, context="")

# this is annoying, but required to work around a bug in early 3.8.0 versions
try:
param = getParameterFromString(line, context="")
except TypeError:
param = getParameterFromString(line)

if param is not None:
self.addParameter(param)
else:
Expand Down

0 comments on commit 11f91a2

Please sign in to comment.