@@ -256,6 +256,7 @@ def execute(self, context):
256
256
try :
257
257
rast = bpyGeoRaster (filePath )
258
258
except IOError as e :
259
+ log .error ("Unable to open raster" , exc_info = True )
259
260
self .report ({'ERROR' }, "Unable to open raster, check logs for more infos" )
260
261
return {'CANCELLED' }
261
262
#Get or set georef dx, dy
@@ -288,6 +289,7 @@ def execute(self, context):
288
289
try :
289
290
rast = bpyGeoRaster (filePath )
290
291
except IOError as e :
292
+ log .error ("Unable to open raster" , exc_info = True )
291
293
self .report ({'ERROR' }, "Unable to open raster, check logs for more infos" )
292
294
return {'CANCELLED' }
293
295
#Check pixel size and rotation
@@ -342,6 +344,7 @@ def execute(self, context):
342
344
try :
343
345
rast = bpyGeoRaster (filePath , subBoxGeo = subBox )
344
346
except IOError as e :
347
+ log .error ("Unable to open raster" , exc_info = True )
345
348
self .report ({'ERROR' }, "Unable to open raster, check logs for more infos" )
346
349
return {'CANCELLED' }
347
350
except OverlapError :
@@ -383,6 +386,7 @@ def execute(self, context):
383
386
try :
384
387
grid = bpyGeoRaster (filePath , subBoxGeo = subBox , clip = self .clip , fillNodata = self .fillNodata , useGDAL = HAS_GDAL , raw = True )
385
388
except IOError as e :
389
+ log .error ("Unable to open raster" , exc_info = True )
386
390
self .report ({'ERROR' }, "Unable to open raster, check logs for more infos" )
387
391
return {'CANCELLED' }
388
392
except OverlapError :
@@ -440,6 +444,7 @@ def execute(self, context):
440
444
try :
441
445
grid = GeoRaster (filePath , subBoxGeo = subBox , useGDAL = HAS_GDAL )
442
446
except IOError as e :
447
+ log .error ("Unable to open raster" , exc_info = True )
443
448
self .report ({'ERROR' }, "Unable to open raster, check logs for more infos" )
444
449
return {'CANCELLED' }
445
450
except OverlapError :
0 commit comments