We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdeadf5 commit b7c74e7Copy full SHA for b7c74e7
src/gitingest/schemas/filesystem_schema.py
@@ -137,6 +137,8 @@ def content(self) -> str: # pylint: disable=too-many-return-statements
137
return f.read()
138
except UnicodeDecodeError:
139
continue
140
+ except UnicodeError:
141
+ continue
142
except OSError as exc:
143
return f"Error reading file: {exc}"
144
src/gitingest/utils/file_utils.py
@@ -66,6 +66,8 @@ def is_text_file(path: Path) -> bool:
66
return True
67
68
69
70
71
except OSError:
72
return False
73
0 commit comments