Skip to content


safer check if crs is None
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Sep 3, 2018
1 parent 365e952 commit b3d94f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit b3d94f1

Please sign in to comment.