mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
style: remove trailing whitespace in exception_handler function
This commit is contained in:
parent
1cc2b2ef63
commit
050291c5a4
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ def exception_handler(exc_type, exc_value, exc_traceback):
|
||||||
|
|
||||||
# Format the traceback
|
# Format the traceback
|
||||||
tb_lines = traceback.format_exception(exc_type, exc_value, exc_traceback)
|
tb_lines = traceback.format_exception(exc_type, exc_value, exc_traceback)
|
||||||
|
|
||||||
# Replace full paths with basenames in the traceback
|
# Replace full paths with basenames in the traceback
|
||||||
tb_lines_with_basenames = []
|
tb_lines_with_basenames = []
|
||||||
for line in tb_lines:
|
for line in tb_lines:
|
||||||
|
@ -68,7 +68,7 @@ def exception_handler(exc_type, exc_value, exc_traceback):
|
||||||
basename = os.path.basename(full_path)
|
basename = os.path.basename(full_path)
|
||||||
line = line.replace(full_path, basename)
|
line = line.replace(full_path, basename)
|
||||||
tb_lines_with_basenames.append(line)
|
tb_lines_with_basenames.append(line)
|
||||||
|
|
||||||
tb_text = "".join(tb_lines_with_basenames)
|
tb_text = "".join(tb_lines_with_basenames)
|
||||||
|
|
||||||
# Find the first non-frozen frame
|
# Find the first non-frozen frame
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue