mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Catch and ignore SwitchCoder error in main function when running with --message
This commit is contained in:
parent
b8d09e1f04
commit
69e471f91c
1 changed files with 4 additions and 1 deletions
|
@ -608,7 +608,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if args.message:
|
||||
io.add_to_input_history(args.message)
|
||||
io.tool_output()
|
||||
coder.run(with_message=args.message)
|
||||
try:
|
||||
coder.run(with_message=args.message)
|
||||
except SwitchCoder:
|
||||
pass
|
||||
return
|
||||
|
||||
if args.message_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue