diff --git a/subcmds/sync.py b/subcmds/sync.py index 2fea61d5..9e43df4a 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -185,9 +185,10 @@ class TeeStringIO(io.StringIO): def write(self, s: str) -> int: """Write to additional destination.""" - super().write(s) + ret = super().write(s) if self.io is not None: self.io.write(s) + return ret class Sync(Command, MirrorSafeCommand):