mirror of
https://github.com/openzim/warc2zim.git
synced 2025-10-19 22:43:16 +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)
|
- Fixed 404 page (#96)
|
||||||
- Dont't crash on missing Location headers on potential redirect
|
- 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
|
## [1.4.3] - 2022-06-21
|
||||||
|
|
||||||
|
|
|
@ -384,6 +384,7 @@ class WARC2Zim:
|
||||||
setlocale(pathlib.Path(__file__).parent, lang_data.get("iso-639-1"))
|
setlocale(pathlib.Path(__file__).parent, lang_data.get("iso-639-1"))
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error(f"Invalid language setting `{self.language}`. Using `eng`.")
|
logger.error(f"Invalid language setting `{self.language}`. Using `eng`.")
|
||||||
|
self.language = "eng"
|
||||||
|
|
||||||
self.env = self.init_env()
|
self.env = self.init_env()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue