File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
python/plugins/processing/gui Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
***************************************************************************
18
18
"""
19
19
20
+
20
21
__author__ = 'Victor Olaya'
21
22
__date__ = 'August 2012'
22
23
__copyright__ = '(C) 2012, Victor Olaya'
35
36
from processing .tools import dataobjects
36
37
from processing .tools .system import getTempFilename
37
38
from processing .tools import vector
38
-
39
+ from processing . core . SilentProgress import SilentProgress
39
40
40
41
def runalg (alg , progress = None ):
41
42
"""Executes a given algorithm, showing its progress in the
@@ -45,7 +46,7 @@ def runalg(alg, progress=None):
45
46
could not be completed.
46
47
"""
47
48
try :
48
- alg .execute (progress )
49
+ alg .execute (progress or SilentProgress () )
49
50
return True
50
51
except GeoAlgorithmExecutionException as e :
51
52
ProcessingLog .addToLog (sys .exc_info ()[0 ], ProcessingLog .LOG_ERROR )
You can’t perform that action at this time.
0 commit comments