Instead of putting this in a `try`, it would be cleaner just to modify `get_config_path` to have a `raise_error` option, defaulting to `True` but used with `False` here. `get_config_path` would then only raise `OSError` if `raise_error is True`. It could return `None` `if raise_error is False`, and that could be triaged here.