Browse Source

main: Also catch OSErrors when loading the config

Jan Holthuis 5 years ago
parent
commit
366e7f3c8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sphinx_multiversion/main.py

+ 1 - 1
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)