File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
python/plugins/processing/gui Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 37
37
from numpy import nan_to_num
38
38
39
39
from qgis .PyQt .QtCore import QCoreApplication , QMetaObject
40
- from qgis .PyQt .QtWidgets import QDialog , QVBoxLayout , QTextEdit
40
+ from qgis .PyQt .QtWidgets import QDialog , QVBoxLayout , QTextEdit , QMessageBox
41
41
42
42
from processing .core .Processing import Processing
43
43
from processing .core .outputs import (
@@ -232,6 +232,15 @@ def createTest(text):
232
232
if isinstance (out , (OutputNumber , OutputString )):
233
233
results [out .name ] = str (out )
234
234
elif isinstance (out , OutputRaster ):
235
+ if token is None :
236
+ QMessageBox .warning (None ,
237
+ tr ('Error' ),
238
+ tr ('Seems some outputs are temporary '
239
+ 'files. To create test you need to '
240
+ 'redirect all algorithm outputs to '
241
+ 'files' ))
242
+ return
243
+
235
244
dataset = gdal .Open (token , GA_ReadOnly )
236
245
dataArray = nan_to_num (dataset .ReadAsArray (0 ))
237
246
strhash = hashlib .sha224 (dataArray .data ).hexdigest ()
You can’t perform that action at this time.
0 commit comments