Skip to content

Commit

Permalink
[processing] Always clear list of previously encountered errors on
Browse files Browse the repository at this point in the history
each new algorithm execution

Avoids the situation where errors reported during an algorithm
which was overall successully executed are append to the errors
for later execution steps
  • Loading branch information
nyalldawson committed Aug 8, 2019
1 parent 2c5766e commit fe8b7c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/gui/BatchAlgorithmDialog.py
Expand Up @@ -141,7 +141,7 @@ def runAlgorithm(self):
context = dataobjects.createContext(feedback)

alg_start_time = time.time()

multi_feedback.errors = []
results, ok = self.algorithm().run(parameters, context, multi_feedback)
if ok:
self.setInfo(
Expand All @@ -157,7 +157,6 @@ def runAlgorithm(self):
handleAlgorithmResults(self.algorithm(), context, multi_feedback, False, parameters)
else:
err = [e for e in multi_feedback.errors]
multi_feedback.errors = []
self.setInfo(
QCoreApplication.translate('BatchAlgorithmDialog', 'Algorithm {0} failed…').format(
self.algorithm().displayName()), escapeHtml=False)
Expand Down

0 comments on commit fe8b7c0

Please sign in to comment.