zabgrab.services.config¶
Config loading with interactive repair of invalid files.
Functions
|
Call |
- zabgrab.services.config.load_with_repair(load, ui, editor)[source]¶
Call
load; if a config file is invalid, offer to open it for editing.Interactive sessions are shown the error and offered the editor, after which loading is retried. Otherwise (or if the user declines) the error is raised.
- Parameters:
- Returns:
T – What
loadreturns.- Raises:
ConfigError – If a file is invalid and isn’t fixed (marked as reported if the user was already shown it).
- Return type:
T