Skip to content
Permalink
Browse files

[processing] use SilentProgress by default if no progress object is p…

…assed
  • Loading branch information
volaya committed Jul 21, 2016
1 parent 6c48675 commit df2ca2e60798315d816966f25aa024b93835f776
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/gui/AlgorithmExecutor.py
@@ -17,6 +17,7 @@
***************************************************************************
"""


__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
@@ -35,7 +36,7 @@
from processing.tools import dataobjects
from processing.tools.system import getTempFilename
from processing.tools import vector

from processing.core.SilentProgress import SilentProgress

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

0 comments on commit df2ca2e

Please sign in to comment.
You can’t perform that action at this time.