From 147346d4ee4a558ec0da39a288cbc84c5053c5e1 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Fri, 15 Jun 2018 09:01:39 +0200 Subject: [sosreport] call traceback.print_exc without arguments to prevent uncaught exception on py3 also dont import already imported traceback class Resolves: #1349 Signed-off-by: Pavel Moravec --- sos/sosreport.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sos/sosreport.py b/sos/sosreport.py index a7d69a8b..42ff8938 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -1233,10 +1233,9 @@ class SoSReport(object): else: raise e except Exception as e: - import traceback self.ui_log.error("") self.ui_log.error(" Unexpected exception setting up archive:") - traceback.print_exc(e) + traceback.print_exc() self.ui_log.error(e) self._exit(1) -- cgit