mirror of
https://github.com/openzim/warc2zim.git
synced 2025-10-19 14:33:17 +00:00
Fixed incorrect ISO-639-3 --lang not replaced with
This commit is contained in:
parent
530cc153ab
commit
cd69c6737e
2 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- Fixed 404 page (#96)
|
||||
- Dont't crash on missing Location headers on potential redirect
|
||||
- Fixed incorrect ISO-639-3 --lang not replaced with `eng`
|
||||
|
||||
## [1.4.3] - 2022-06-21
|
||||
|
||||
|
|
|
@ -384,6 +384,7 @@ class WARC2Zim:
|
|||
setlocale(pathlib.Path(__file__).parent, lang_data.get("iso-639-1"))
|
||||
except Exception:
|
||||
logger.error(f"Invalid language setting `{self.language}`. Using `eng`.")
|
||||
self.language = "eng"
|
||||
|
||||
self.env = self.init_env()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue