Browse Source

backup: print exceptions from reader thread

master
Jim Paris 2 years ago
parent
commit
81d430b56b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      backup.py

+ 2
- 2
backup.py View File

@@ -356,8 +356,8 @@ def main(argv: typing.List[str]):
# ignore unknown progress line
continue
except Exception as e:
# on error, print raw line
pass
# on error, print raw line with exception
line = f"[exception: {str(e)} ]".encode() + line
sys.stdout.buffer.write(line)
sys.stdout.flush()
captured_output.append(line)


Loading…
Cancel
Save