diff --git a/scripts/spdkcli.py b/scripts/spdkcli.py index 5a668c26b..6e2ccd0db 100755 --- a/scripts/spdkcli.py +++ b/scripts/spdkcli.py @@ -74,6 +74,9 @@ def main(): spdk_shell.run_interactive() except (JSONRPCException, ExecutionError) as e: spdk_shell.log.error("%s" % e) + except BrokenPipeError as e: + spdk_shell.log.error("Lost connection with SPDK: %s" % e) + break if __name__ == "__main__":