Skip to content

Commit 739e2aa

Browse files
committed
[processing] use SilentProgress by default if no progress object is passed
1 parent 3e73840 commit 739e2aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/plugins/processing/gui/AlgorithmExecutor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
***************************************************************************
1818
"""
1919

20+
2021
__author__ = 'Victor Olaya'
2122
__date__ = 'August 2012'
2223
__copyright__ = '(C) 2012, Victor Olaya'
@@ -35,7 +36,7 @@
3536
from processing.tools import dataobjects
3637
from processing.tools.system import getTempFilename
3738
from processing.tools import vector
38-
39+
from processing.core.SilentProgress import SilentProgress
3940

4041
def runalg(alg, progress=None):
4142
"""Executes a given algorithm, showing its progress in the
@@ -45,7 +46,7 @@ def runalg(alg, progress=None):
4546
could not be completed.
4647
"""
4748
try:
48-
alg.execute(progress)
49+
alg.execute(progress or SilentProgress())
4950
return True
5051
except GeoAlgorithmExecutionException as e:
5152
ProcessingLog.addToLog(sys.exc_info()[0], ProcessingLog.LOG_ERROR)

0 commit comments

Comments
 (0)