Parcourir la source

main: Also catch OSErrors when loading the config

Jan Holthuis il y a 5 ans
Parent
commit
366e7f3c8b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)