Fix broken error handling

This commit is contained in:
Matthias Kuhn 2017-10-16 23:16:30 +02:00
parent 28c67e1c01
commit 34a9d91488

View File

@ -113,7 +113,7 @@ class GdalUtils(object):
retry_count += 1
else:
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:])))
QgsMessageLog.logMessage('\n'.join(loglines), 'Processing', QgsMessageLog.INFO)