Skip to content

Commit ee82530

Browse files
committed
docs: Patching docs about LanguageTool versions, and adding a precision in an error message about it
1 parent 8d65b6c commit ee82530

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ into where the ``language_tool_python`` package resides.
270270

271271
### LanguageTool Version
272272

273-
As of April 2020, `language_tool_python` was forked from `language-check` and no longer supports LanguageTool versions lower than 4.0.
273+
LanguageTool versions under 6.0 are no longer downloadable from the LanguageTool website. If you need to use an older version, you can download it from the [LanguageTool GitHub tags page](https://github.com/languagetool-org/languagetool/tags) and build it yourself.
274274

275275
### Acknowledgements
276276

language_tool_python/download_lt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def http_get(url: str, out_file: IO[bytes], proxies: Optional[Dict[str, str]] =
132132
content_length = req.headers.get('Content-Length')
133133
total = int(content_length) if content_length is not None else None
134134
if req.status_code == 404:
135-
raise PathError(f'Could not find at URL {url}. The given version may not exist.')
135+
raise PathError(f'Could not find at URL {url}. The given version may not exist or is no longer available.')
136136
version = re.search(r'(\d+\.\d+)', url).group(1)
137137
progress = tqdm.tqdm(unit="B", unit_scale=True, total=total,
138138
desc=f'Downloading LanguageTool {version}')

0 commit comments

Comments
 (0)