Skip to content

Commit

Permalink
Fixed incorrect ISO-639-3 --lang not replaced with
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Dec 17, 2022
1 parent 530cc15 commit cd69c67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/warc2zim/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ def run(self):
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()

Expand Down

0 comments on commit cd69c67

Please sign in to comment.