From ed67e717cf2daffe7420dfbd4336ff58724c0834 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 2 Jun 2020 09:54:27 -0700 Subject: [PATCH] Fix broken pipe --- inquisitor/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inquisitor/__main__.py b/inquisitor/__main__.py index d460a87..05c9297 100644 --- a/inquisitor/__main__.py +++ b/inquisitor/__main__.py @@ -6,6 +6,10 @@ import cli import configs +from signal import signal, SIGPIPE, SIG_DFL +signal(SIGPIPE, SIG_DFL) + + def parse_args(valid_commands): command_descs = "\n".join([ "- {0}: {1}".format(name, func.__doc__)