mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
fix: handle TypeError when checking __version__ for dev mode
This commit is contained in:
parent
0424e4b00a
commit
eb92fa4f88
1 changed files with 6 additions and 1 deletions
|
@ -195,7 +195,12 @@ def launch_gui(args):
|
||||||
"--server.runOnSave=false",
|
"--server.runOnSave=false",
|
||||||
]
|
]
|
||||||
|
|
||||||
if "-dev" in __version__:
|
try:
|
||||||
|
is_dev = "-dev" in str(__version__)
|
||||||
|
except TypeError:
|
||||||
|
is_dev = False
|
||||||
|
|
||||||
|
if is_dev:
|
||||||
print("Watching for file changes.")
|
print("Watching for file changes.")
|
||||||
else:
|
else:
|
||||||
st_args += [
|
st_args += [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue