mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Handle errors more gracefully.
This commit is contained in:
parent
10e231bf12
commit
55aacf998a
@ -360,12 +360,17 @@ class BuildEnvironment:
|
||||
continue
|
||||
# finally, check the mtime of dependencies
|
||||
for dep in self.dependencies.get(docname, ()):
|
||||
deppath = path.join(self.srcdir, dep)
|
||||
if not path.isfile(deppath):
|
||||
changed.add(docname)
|
||||
break
|
||||
depmtime = path.getmtime(deppath)
|
||||
if depmtime > mtime:
|
||||
try:
|
||||
deppath = path.join(self.srcdir, dep)
|
||||
if not path.isfile(deppath):
|
||||
changed.add(docname)
|
||||
break
|
||||
depmtime = path.getmtime(deppath)
|
||||
if depmtime > mtime:
|
||||
changed.add(docname)
|
||||
break
|
||||
except EnvironmentError:
|
||||
# give it another chance
|
||||
changed.add(docname)
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user