mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1680: fix botched error check for nonexisting environment file
This commit is contained in:
parent
3c872e66a4
commit
14b4a56bec
@ -188,7 +188,7 @@ class Sphinx(object):
|
|||||||
self.env.domains[domain] = self.domains[domain](self.env)
|
self.env.domains[domain] = self.domains[domain](self.env)
|
||||||
self.info('done')
|
self.info('done')
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
if type(err) is IOError and err.errno == ENOENT:
|
if isinstance(err, IOError) and err.errno == ENOENT:
|
||||||
self.info('not yet created')
|
self.info('not yet created')
|
||||||
else:
|
else:
|
||||||
self.info('failed: %s' % err)
|
self.info('failed: %s' % err)
|
||||||
|
Loading…
Reference in New Issue
Block a user