From 4e5f11cc49d28bd678b1ec0c9c3a8df3b9ac4380 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 3 Oct 2013 17:58:07 +0100 Subject: [PATCH 2/2] Do not exit on interactive mode read exceptions Currently the default policy object will exit without logging any errors if an exception (e.g. EOF while reading line) is caught during reads for interactive mode prompts. Instead re-set the report name to a sane value (localname) and attempt to continue. Signed-off-by: Bryn M. Reeves --- sos/policies/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 8eff993..752d480 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -455,7 +455,7 @@ class LinuxPolicy(Policy): self._print() except: self._print() - sys.exit(0) + self.report_name = localname if len(self.report_name) == 0: self.report_name = localname -- 1.7.11.7