mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
intersphinx: Update error message (refs: #3234)
This commit is contained in:
parent
4153ee0d9d
commit
40473290ad
@ -221,8 +221,8 @@ def fetch_inventory(app, uri, inv):
|
||||
try:
|
||||
join = localuri and path.join or posixpath.join
|
||||
invdata = read_inventory(f, uri, join)
|
||||
except ValueError:
|
||||
raise ValueError('unknown or unsupported inventory version')
|
||||
except ValueError as exc:
|
||||
raise ValueError('unknown or unsupported inventory version: %r' % exc)
|
||||
except Exception as err:
|
||||
app.warn('intersphinx inventory %r not readable due to '
|
||||
'%s: %s' % (inv, err.__class__.__name__, err))
|
||||
|
Loading…
Reference in New Issue
Block a user