diff --git a/common/text_window.py b/common/text_window.py index b815d8022a..1aa3b885ea 100755 --- a/common/text_window.py +++ b/common/text_window.py @@ -5,7 +5,7 @@ import subprocess from common.basedir import BASEDIR -class TextWindow(): +class TextWindow: def __init__(self, s, noop=False): # text window is only implemented for android currently self.text_proc = None diff --git a/selfdrive/manager.py b/selfdrive/manager.py index 3c5fcc3667..bcc51ff89f 100755 --- a/selfdrive/manager.py +++ b/selfdrive/manager.py @@ -620,8 +620,7 @@ if __name__ == "__main__": cloudlog.exception("Manager failed to start") # Show last 3 lines of traceback - error = traceback.format_exc(3) - + error = traceback.format_exc(-3) error = "Manager failed to start\n \n" + error with TextWindow(error) as t: t.wait_for_exit()