diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/utils/io.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/io.py b/python/vyos/utils/io.py index 3efb55ddc..77e30cbb0 100644 --- a/python/vyos/utils/io.py +++ b/python/vyos/utils/io.py @@ -117,7 +117,7 @@ def catch_broken_pipe(func): import sys def wrapped(*args, **kwargs): try: - func(*args, **kwargs) + return func(*args, **kwargs) except (BrokenPipeError, KeyboardInterrupt): # Flush output to /dev/null and bail out. os.dup2(os.open(os.devnull, os.O_WRONLY), sys.stdout.fileno()) # pylint: disable = no-member |
