mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: armor os.path.basename call in exception handler
This commit is contained in:
parent
050291c5a4
commit
b441c03461
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ def exception_handler(exc_type, exc_value, exc_traceback):
|
|||
parts = line.split('"')
|
||||
if len(parts) > 1:
|
||||
full_path = parts[1]
|
||||
basename = os.path.basename(full_path)
|
||||
try:
|
||||
basename = os.path.basename(full_path)
|
||||
except Exception:
|
||||
basename = full_path
|
||||
line = line.replace(full_path, basename)
|
||||
tb_lines_with_basenames.append(line)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue