Skip to content
Browse files

safer check if crs is None

  • Loading branch information
luipir committed Sep 3, 2018
1 parent 365e952 commit b3d94f110f2ada20a841a4fa9552776add17b262
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/
@@ -110,7 +110,7 @@ def processAlgorithm(self, parameters, context, feedback):
layersDict = {lyr.source(): lyr for lyr in layers}

crs = self.parameterAsCrs(parameters, self.CRS, context)
if not crs or not crs.isValid():
if crs is None or not crs.isValid():
if not layers:
raise QgsProcessingException("No reference layer selected nor CRS provided"))

0 comments on commit b3d94f1

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