mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] Fix error when creating tests and raster output
no longer exists Fixes #16123
This commit is contained in:
parent
4289bcb3cb
commit
60a87e9497
@ -263,6 +263,15 @@ def createTest(text):
|
||||
return
|
||||
|
||||
dataset = gdal.Open(token, GA_ReadOnly)
|
||||
if dataset is None:
|
||||
QMessageBox.warning(None,
|
||||
tr('Error'),
|
||||
tr('Seems some outputs are temporary '
|
||||
'files. To create test you need to '
|
||||
'redirect all algorithm outputs to '
|
||||
'files'))
|
||||
return
|
||||
|
||||
dataArray = nan_to_num(dataset.ReadAsArray(0))
|
||||
strhash = hashlib.sha224(dataArray.data).hexdigest()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user