You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseIOError(e.message+u'\nAfter reading {} lines, last lines: {}'.format(len(loglines), u'\n'.join(loglines[-10:])))
74
+
success=False
75
+
retry_count=0
76
+
whilesuccess==False:
77
+
loglines= []
78
+
loglines.append('GDAL execution console output')
79
+
try:
80
+
proc=subprocess.Popen(
81
+
fused_command,
82
+
shell=True,
83
+
stdout=subprocess.PIPE,
84
+
stdin=open(os.devnull),
85
+
stderr=subprocess.STDOUT,
86
+
universal_newlines=True,
87
+
).stdout
88
+
forlineinproc:
89
+
progress.setConsoleInfo(line)
90
+
loglines.append(line)
91
+
success=True
92
+
exceptIOErrorase:
93
+
ifretry_count<5:
94
+
retry_count+=1
95
+
else:
96
+
raiseIOError(e.message+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:])))
0 commit comments