Load from config_file, or create new with defaults.
(config_file: str)
| 237 | return config |
| 238 | |
| 239 | def _load_config(config_file: str) -> ConfigParser: |
| 240 | """Load from config_file, or create new with defaults.""" |
| 241 | |
| 242 | try: |
| 243 | return load_config_from_files([config_file]) |
| 244 | except: |
| 245 | return get_default_config() |
| 246 | |
| 247 | def _write_config(config: ConfigParser, config_file: str): |
| 248 | """Write config to config_file.""" |
no test coverage detected