Skip to content
Permalink
Browse files
[Processing] prevent error when running escapeAndJoin with empty para…
…m string

fixes #16200
  • Loading branch information
volaya committed Apr 4, 2017
1 parent 84897e3 commit c2a566a3a7bfe369832e5361a0c582bfe2ea5a98
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/processing/algs/gdal/GdalAlgorithm.py
@@ -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
@@ -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:

1 comment on commit c2a566a

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on c2a566a Apr 4, 2017

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

Please sign in to comment.