Skip to content
Permalink
Browse files

[bugfix] PTP check for output folder. (#40488)

Fixes #40486

(cherry picked from commit b686336)
  • Loading branch information
roya0045 authored and nyalldawson committed Jan 15, 2021
1 parent 3a90ea3 commit 0a9f20ffa1f27f4bd00fac6234b214103d52ae18
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/algs/qgis/PointsToPaths.py
@@ -132,6 +132,9 @@ def processAlgorithm(self, parameters, context, feedback):
if sink is None:
raise QgsProcessingException(self.invalidSinkError(parameters, self.OUTPUT))

if text_dir and not(os.path.exists(text_dir)):
raise QgsProcessingException(self.tr("The text output directory does not exist"))

points = dict()
features = source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([group_field_index, order_field_index]), QgsProcessingFeatureSource.FlagSkipGeometryValidityChecks)
total = 100.0 / source.featureCount() if source.featureCount() else 0

0 comments on commit 0a9f20f

Please sign in to comment.