From 366e7f3c8b3f432072629b324f288698feac1d56 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Sun, 23 Feb 2020 18:45:32 +0100 Subject: [PATCH] main: Also catch OSErrors when loading the config --- sphinx_multiversion/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_multiversion/main.py b/sphinx_multiversion/main.py index 1e1f906..f613b0b 100644 --- a/sphinx_multiversion/main.py +++ b/sphinx_multiversion/main.py @@ -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)