main: Also catch OSErrors when loading the config

This commit is contained in:
Jan Holthuis 2020-02-23 18:45:32 +01:00
parent 8f992a3761
commit 366e7f3c8b

View file

@ -92,7 +92,7 @@ def main(argv=None):
confpath,
confoverrides,
)
except sphinx_config.ConfigError:
except (OSError, sphinx_config.ConfigError):
logger.error(
"Failed load config for %s from %s",
gitref.refname, confpath)