diff --git a/CHANGELOG b/CHANGELOG index f255ca4..c241c9b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,6 +10,7 @@ Changes since beta1 - fixes existing non-html ressources marked a to_fetch even when not needed (simple and/or confusion) - attempt at hiding XMLparsedAsHTMLWarning from BS4 library - chafa now used by default everywhere if version > 1.10 +- ignoring encoding error in ansicat ## 2.0-beta1 - September 05th 2023 This is an an experimental release. Bug reports and feedbacks are welcome on the offpunk-devel list. diff --git a/ansicat.py b/ansicat.py index 84a9cb9..e0d88d0 100755 --- a/ansicat.py +++ b/ansicat.py @@ -1247,7 +1247,7 @@ def renderer_from_file(path,url=None,theme=None): url = path if os.path.exists(path): if mime.startswith("text/") or mime in _FORMAT_RENDERERS: - with open(path) as f: + with open(path,errors="ignore") as f: content = f.read() f.close() else: