main: clean the terminal line before printing a traceback

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <>
parent e75be7e7
......@@ -33,7 +33,7 @@ from .path import set_path
from .tools import tool_prepend_prefix, tool_required, OS_NAMES, get_current_os
from .config import Config
from .locale import set_locale
from .logging import setup_logging
from .logging import line_ereser, setup_logging
from .progress import ProgressManager, Progress
from .profiling import ProfileManager, profile
from .tempfiles import clean_all_temp_files
......@@ -464,6 +464,7 @@ def main(args=None):
except BrokenPipeError:
except Exception:
if parsed_args and parsed_args.debugger:
import pdb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment