diff options
-rwxr-xr-x | sos/sosreport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py index 03013175..58cc23e6 100755 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -698,8 +698,9 @@ No changes will be made to your system. raise else: error_log = open(logdir + "/sosreport-plugin-errors.txt", "a") + etype, eval, etrace = sys.exc_info() traceback.print_exception(etype, eval, etrace, limit=2, file=sys.stdout) - error_log.write(traceback.format_exc) + error_log.write(traceback.format_exc()) error_log.close() print _(" Running plugins. Please wait ...") |