Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 0a9f20f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/PointsToPaths.py
Expand Up @@ -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
Expand Down

0 comments on commit 0a9f20f

Please sign in to comment.