backups: handle empty tar output
This commit is contained in:
parent
a40e946a3f
commit
a12cf158da
@ -837,8 +837,14 @@ class ExtractWorker(Process):
|
||||
return
|
||||
|
||||
if self.tar2_process.poll() is None:
|
||||
new_lines = self.tar2_process.stderr\
|
||||
try:
|
||||
new_lines = self.tar2_process.stderr\
|
||||
.read(MAX_STDERR_BYTES).splitlines()
|
||||
except IOError as e:
|
||||
if e.errno == errno.EAGAIN:
|
||||
return
|
||||
else:
|
||||
raise
|
||||
else:
|
||||
new_lines = self.tar2_process.stderr.readlines()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user