Blame SOURCES/sos-bz1026962-sosreport-fix-silent-exception-handling.patch

e75bc7
diff -up sos-3.2/sos/sosreport.py.orig sos-3.2/sos/sosreport.py
e75bc7
--- sos-3.2/sos/sosreport.py.orig	2015-01-20 14:39:34.149596845 +0000
e75bc7
+++ sos-3.2/sos/sosreport.py	2015-01-20 14:39:56.132654519 +0000
e75bc7
@@ -1131,11 +1131,13 @@ class SoSReport(object):
e75bc7
                                       % e.strerror)
e75bc7
                     self.ui_log.error("")
e75bc7
                     self._exit(1)
e75bc7
+                if self.raise_plugins:
e75bc7
+                    raise
e75bc7
+                self._log_plugin_exception(plugname, "setup")
e75bc7
             except:
e75bc7
                 if self.raise_plugins:
e75bc7
                     raise
e75bc7
-                else:
e75bc7
-                    self._log_plugin_exception(plugname, "setup")
e75bc7
+                self._log_plugin_exception(plugname, "setup")
e75bc7
 
e75bc7
     def version(self):
e75bc7
         """Fetch version information from all plugins and store in the report
e75bc7
@@ -1177,11 +1179,13 @@ class SoSReport(object):
e75bc7
                                       % e.strerror)
e75bc7
                     self.ui_log.error("")
e75bc7
                     self._exit(1)
e75bc7
+                if self.raise_plugins:
e75bc7
+                    raise
e75bc7
+                self._log_plugin_exception(plugname, "collect")
e75bc7
             except:
e75bc7
                 if self.raise_plugins:
e75bc7
                     raise
e75bc7
-                else:
e75bc7
-                    self._log_plugin_exception(plugname, "collect")
e75bc7
+                self._log_plugin_exception(plugname, "collect")
e75bc7
         self.ui_log.info("")
e75bc7
 
e75bc7
     def report(self):
e75bc7
@@ -1324,12 +1328,13 @@ class SoSReport(object):
e75bc7
                                       % e.strerror)
e75bc7
                     self.ui_log.error("")
e75bc7
                     self._exit(1)
e75bc7
+                if self.raise_plugins:
e75bc7
+                    raise
e75bc7
+                self._log_plugin_exception(plugname, "postproc")
e75bc7
             except:
e75bc7
                 if self.raise_plugins:
e75bc7
                     raise
e75bc7
-                else:
e75bc7
-                    self._log_plugin_exception(plugname, "postproc")
e75bc7
-
e75bc7
+                self._log_plugin_exception(plugname, "postproc")
e75bc7
 
e75bc7
     def final_work(self):
e75bc7
         # this must come before archive creation to ensure that log