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 c8191c7 commit d832ef4Copy full SHA for d832ef4
server/src/core/python_arch_eval.rs
@@ -78,7 +78,10 @@ impl PythonArchEval {
78
panic!("Trying to eval_arch a symbol without any path")
79
}
80
let path = self.file.borrow().get_symbol_first_path();
81
- let file_info_rc = session.sync_odoo.get_file_mgr().borrow().get_file_info(&path).expect("File not found in cache").clone();
+ let Some(file_info_rc) = session.sync_odoo.get_file_mgr().borrow().get_file_info(&path).clone() else {
82
+ warn!("File info not found for {}", path);
83
+ return;
84
+ };
85
if file_info_rc.borrow().file_info_ast.borrow().ast.is_none() {
86
file_info_rc.borrow_mut().prepare_ast(session);
87
0 commit comments