瀏覽代碼

main: Also catch OSErrors when loading the config

Jan Holthuis 5 年之前
父節點
當前提交
366e7f3c8b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)