From 8a6e2dbb8662fca26dbc1807583afd77cd468a22 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 29 Aug 2024 10:09:20 -0700 Subject: [PATCH] refactor: introduce FENCE variable for code block delimiters --- aider/report.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/report.py b/aider/report.py index 7875b023e..3d67e9512 100644 --- a/aider/report.py +++ b/aider/report.py @@ -7,6 +7,8 @@ import webbrowser from aider import __version__ from aider.urls import github_issues +FENCE = "```" + def report_github_issue(issue_text, title=None): """ @@ -93,7 +95,7 @@ def exception_handler(exc_type, exc_value, exc_traceback): exception_type = exc_type.__name__ # Prepare the issue text - issue_text = f"An uncaught exception occurred:\n\n```\n{tb_text}\n```" + issue_text = f"An uncaught exception occurred:\n\n{FENCE}\n{tb_text}\n{FENCE}" # Prepare the title title = f"Uncaught {exception_type} in {basename} line {line_number}"