Explorar o código

main: Also catch OSErrors when loading the config

Jan Holthuis %!s(int64=5) %!d(string=hai) anos
pai
achega
366e7f3c8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sphinx_multiversion/main.py

+ 1 - 1
sphinx_multiversion/main.py

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