## ConfigError


The config file is corrupt, or there is none and nothing says what to write.


Usage

``` python
ConfigError()
```


Raised by `load_config` and [ensure_config](ensure_config.md#spice_kernel_db.ensure_config) when the config file does not parse, or when there is no file and no `seed_root` to write one from. A file that does not parse never reads as "not configured".

This is a subclass of `RuntimeError`, not of `ValueError`. [remove_root](remove_root.md#spice_kernel_db.remove_root) raises `ValueError` for a bad argument, and an `except ValueError` around it must not swallow a broken config file.

The CLI prints the message and exits with code 78, the conventional code for a configuration error (EX_CONFIG). It is outside the 0 to 7 that [check](check.md#spice_kernel_db.check) uses as verdict bits. `spice-kernel-db config --setup` writes a fresh file.
