Fixed incorrect ISO-639-3 --lang not replaced with

This commit is contained in:
renaud gaudin 2022-12-17 15:34:45 +00:00
parent 530cc153ab
commit cd69c6737e
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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()