From 0ab598f25356962ac1528c2d92e88f7716b6713e Mon Sep 17 00:00:00 2001 From: George Lacey Date: Fri, 7 May 2021 10:54:35 +0100 Subject: [PATCH] sleep before read from stdin --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index 4688f17..b8f53c2 100644 --- a/src/main.py +++ b/src/main.py @@ -6,6 +6,7 @@ import argparse from borgmanager.borg import OutputHandler from borgmanager.summary import Summary from borgmanager.logging import Log, LEVEL_DEBUG +from time import sleep def main(args, path: Path, log: Log): @@ -22,6 +23,7 @@ def main(args, path: Path, log: Log): summary = Summary(db) print(summary.repo_stats()) else: + sleep(1) log.debug("reading from stdin") borg_output = " ".join(stdin.readlines()) log.debug(f"stdin output: {borg_output}")