Skip to content

Commit

Permalink
[Processing] prevent error when running escapeAndJoin with empty para…
Browse files Browse the repository at this point in the history
…m string

fixes #16200
  • Loading branch information
volaya committed Apr 4, 2017
1 parent 84897e3 commit c2a566a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/processing/algs/gdal/GdalAlgorithm.py
Expand Up @@ -30,8 +30,7 @@

from qgis.PyQt.QtCore import QUrl

from qgis.core import (QgsApplication,
QgsVectorFileWriter)
from qgis.core import QgsApplication

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.algs.gdal.GdalAlgorithmDialog import GdalAlgorithmDialog
Expand Down Expand Up @@ -59,7 +58,7 @@ def getCustomParametersDialog(self):
def processAlgorithm(self, feedback):
commands = self.getConsoleCommands()
layers = dataobjects.getVectorLayers()
supported = QgsVectorFileWriter.supportedFormatExtensions()
supported = dataobjects.getSupportedOutputVectorLayerExtensions()
for i, c in enumerate(commands):
for layer in layers:
if layer.source() in c:
Expand Down

1 comment on commit c2a566a

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@volaya this fix looks wrong... I moved that method to QgsVectorFileWriter in 26495db

Please sign in to comment.