Skip to content

Commit

Permalink
Version 4.4.2 (#265)
Browse files Browse the repository at this point in the history
* Fixing #264 changelog encoding was causing crashes on non utf-8 systems (thanks to lobofoot)
  • Loading branch information
cdgriffith authored Sep 26, 2021
1 parent 2a9197a commit 60adf2b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 4.4.2

* Fixing #264 changelog encoding was causing crashes on non utf-8 systems (thanks to lobofoot)

## Version 4.4.1

* Fixing colorspace details from advanced page not applied to x265 (thanks to Tình Em Là Đại Dương)
Expand Down
2 changes: 1 addition & 1 deletion fastflix/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def clean_logs(signal, app, **_):
logger.debug(f"Deleting {file.name}")
file.unlink(missing_ok=True)
if file.name.startswith("flix_conversion") or file.name.startswith("flix_2"):
original = file.read_text(encoding="utf-8")
original = file.read_text(encoding="utf-8", errors="ignore")
try:
condensed = "\n".join(
(
Expand Down
2 changes: 1 addition & 1 deletion fastflix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "4.4.1"
__version__ = "4.4.2"
__author__ = "Chris Griffith"
4 changes: 2 additions & 2 deletions fastflix/widgets/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def __init__(self, parent=None):
lay = QtWidgets.QVBoxLayout(content)

if changes_file.exists():
content = changes_file.read_text()
content = changes_file.read_text(encoding="utf-8", errors="ignore")
else:
if not local_changes_file.exists():
raise Exception("Could not locate changlog file")
content = local_changes_file.read_text()
content = local_changes_file.read_text(encoding="utf-8", errors="ignore")

linked_content = issues.sub(
" <a href='https://github.com/cdgriffith/FastFlix/issues/\\1' style='color: black' >\\1</a> ", content
Expand Down

0 comments on commit 60adf2b

Please sign in to comment.