mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Fix broken error handling
This commit is contained in:
parent
28c67e1c01
commit
34a9d91488
@ -113,7 +113,7 @@ class GdalUtils(object):
|
|||||||
retry_count += 1
|
retry_count += 1
|
||||||
else:
|
else:
|
||||||
raise IOError(
|
raise IOError(
|
||||||
e.message + u'\nTried 5 times without success. Last iteration stopped after reading {} line(s).\nLast line(s):\n{}'.format(
|
str(e) + u'\nTried 5 times without success. Last iteration stopped after reading {} line(s).\nLast line(s):\n{}'.format(
|
||||||
len(loglines), u'\n'.join(loglines[-10:])))
|
len(loglines), u'\n'.join(loglines[-10:])))
|
||||||
|
|
||||||
QgsMessageLog.logMessage('\n'.join(loglines), 'Processing', QgsMessageLog.INFO)
|
QgsMessageLog.logMessage('\n'.join(loglines), 'Processing', QgsMessageLog.INFO)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user