diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2018-06-15 09:01:39 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-18 17:16:14 +0100 |
commit | 147346d4ee4a558ec0da39a288cbc84c5053c5e1 (patch) | |
tree | ecd094f68ec7ed1474960f4fb462abe61795abe7 | |
parent | 575e8120525ad2c63baf48581f7a797f9a2e263c (diff) | |
download | sos-147346d4ee4a558ec0da39a288cbc84c5053c5e1.tar.gz |
[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 <pmoravec@redhat.com>
-rw-r--r-- | sos/sosreport.py | 3 |
1 files changed, 1 insertions, 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) |