Skip to content

Commit

Permalink
add None in Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt committed Jul 12, 2018
1 parent aea323e commit 92d1cdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/qgis/RasterSampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ def processAlgorithm(self, parameters, context, feedback):
try:
point = ct.transform(point)
except QgsCsException:
for b in range(sampled_raster.bandCount()):
attrs.append(
None
)
feedback.reportError(self.tr('Could not reproject feature {} to raster CRS').format(i.id()))

attrs = i.attributes()
Expand Down

0 comments on commit 92d1cdc

Please sign in to comment.