diff --git a/getdeck/utils.py b/getdeck/utils.py index 6443413..4941632 100644 --- a/getdeck/utils.py +++ b/getdeck/utils.py @@ -128,8 +128,11 @@ def _execute( process.communicate(stdin) try: if print_output: - for stdout_line in iter(process.stdout.readline, ""): - print(stdout_line, end="", flush=True) + try: + for stdout_line in iter(process.stdout.readline, ""): + print(stdout_line, end="", flush=True) + except Exception as e: + logger.warning(f"Failed to display process output: {str(e)}") process.wait() except KeyboardInterrupt: try: