Commit daef19a
committed
Refactor parameter registry cache key retrieval
- Updated the `_param_registry_cache_key` function to safely access the configuration directory, ensuring it checks for the existence of `_config_dir` before attempting to retrieve the modification time of the engine parameters catalog.
- Improved error handling by encapsulating the file modification time retrieval in a conditional check, enhancing robustness against potential OSError exceptions.1 parent 34488dc commit daef19a
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
0 commit comments