(self)
| 138 | |
| 139 | @property |
| 140 | def config(self) -> Config: |
| 141 | config = self._config |
| 142 | if not config: |
| 143 | self._config = config = Config(directory=self.config_dir) |
| 144 | if not config.is_new(): |
| 145 | try: |
| 146 | config.load() |
| 147 | except ConfigFileError as e: |
| 148 | self.log_error(e, level=LogLevel.WARNING) |
| 149 | return config |
| 150 | |
| 151 | @property |
| 152 | def devnull(self) -> IO: |