| 319 | return None |
| 320 | |
| 321 | def get(self, section, key, **kwargs): |
| 322 | section = str(section).lower() |
| 323 | key = str(key).lower() |
| 324 | |
| 325 | deprecated_section, deprecated_key, _ = self.deprecated_options.get( |
| 326 | (section, key), (None, None, None) |
| 327 | ) |
| 328 | |
| 329 | option = self._get_environment_variables(deprecated_key, deprecated_section, key, section) |
| 330 | if option is not None: |
| 331 | return option |
| 332 | |
| 333 | option = self._get_option_from_config_file(deprecated_key, deprecated_section, key, kwargs, section) |
| 334 | if option is not None: |
| 335 | return option |
| 336 | |
| 337 | option = self._get_option_from_commands(deprecated_key, deprecated_section, key, section) |
| 338 | if option is not None: |
| 339 | return option |
| 340 | |
| 341 | option = self._get_option_from_secrets(deprecated_key, deprecated_section, key, section) |
| 342 | if option is not None: |
| 343 | return option |
| 344 | |
| 345 | return self._get_option_from_default_config(section, key, **kwargs) |
| 346 | |
| 347 | def _get_option_from_default_config(self, section, key, **kwargs): |
| 348 | # ...then the default config |