lutraconsulting / serval

QGIS plugin for setting raster pixel values
41 stars 11 forks source link

Python error if selecting a non-valid raster #40

Closed nicogodet closed 2 years ago

nicogodet commented 2 years ago
\Serval\utils.py", line 100, in check_gdal_driver_create_option
    band = dataset.GetRasterBand(1)
AttributeError: 'NoneType' object has no attribute 'GetRasterBand'

Happens if a raster has a broken path (temp raster from previous QGIS instance that non longer exist)

erpas commented 2 years ago

Hi @nicogodet,

Thanks for reporting it! Fixed in version 3.10.5 of the plugin - it currently awaits update approval.