mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: move webbrowser import to top of file
This commit is contained in:
parent
740534dcff
commit
25a906950c
1 changed files with 1 additions and 2 deletions
|
@ -13,6 +13,7 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
|
import webbrowser
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from json.decoder import JSONDecodeError
|
from json.decoder import JSONDecodeError
|
||||||
|
@ -1145,8 +1146,6 @@ class Coder:
|
||||||
if self.io.confirm_ask(
|
if self.io.confirm_ask(
|
||||||
"View this URL from the error message?", subject=url
|
"View this URL from the error message?", subject=url
|
||||||
):
|
):
|
||||||
import webbrowser #ai move to top!
|
|
||||||
|
|
||||||
webbrowser.open(url)
|
webbrowser.open(url)
|
||||||
break
|
break
|
||||||
self.io.tool_output(f"Retrying in {retry_delay:.1f} seconds...")
|
self.io.tool_output(f"Retrying in {retry_delay:.1f} seconds...")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue