From c458489cc0a85de0b3892cf2215269f16aef1c8d Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 29 Aug 2024 09:16:55 -0700 Subject: [PATCH] feat: include exception type in GitHub issue title --- aider/report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/report.py b/aider/report.py index ad7bc2f46..caabf8f7a 100644 --- a/aider/report.py +++ b/aider/report.py @@ -60,11 +60,14 @@ def exception_handler(exc_type, exc_value, exc_traceback): line_number = exc_traceback.tb_lineno basename = os.path.basename(filename) + # Get the exception type name + exception_type = exc_type.__name__ + # Prepare the issue text issue_text = f"An uncaught exception occurred:\n\n```\n{tb_text}\n```" # Prepare the title - title = f"Uncaught exception in {basename} line {line_number}" + title = f"Uncaught {exception_type} in {basename} line {line_number}" # Report the issue report_github_issue(issue_text, title=title)