Skip to content

Commit d63fbc3

Browse files
committed
Handle ValueError
1 parent d2c9e55 commit d63fbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logya/content.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def parse(content: str) -> dict:
6868
def read(path: Path, path_rel: Path, markdown_extensions: list) -> dict | None:
6969
try:
7070
doc = parse(path.read_text().strip())
71-
except UnicodeDecodeError as err:
71+
except (UnicodeDecodeError, ValueError) as err:
7272
print(f'Error reading/parsing: {path}\n{err}')
7373
return None
7474

0 commit comments

Comments
 (0)