We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58163bf commit 559793dCopy full SHA for 559793d
crates/django-check_semantic/src/parser.rs
@@ -87,7 +87,13 @@ impl Parser {
87
88
for entry in Self::python_files(dir) {
89
let filename = Self::relative_path(dir, entry.path());
90
- let source = fs::read_to_string(entry.path())?;
+ let source = match fs::read_to_string(entry.path()) {
91
+ Ok(source) => source,
92
+ Err(err) => {
93
+ warn!(%err, source=%filename, "parsing file");
94
+ continue;
95
+ }
96
+ };
97
let graph = match self.build_graph(&source, &filename) {
98
Ok(source) => source,
99
Err(err) => {
0 commit comments