mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#512: Fix traceback when `intersphinx_mapping` is empty.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
|||||||
Release 1.0.4 (in development)
|
Release 1.0.4 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
* #512: Fix traceback when ``intersphinx_mapping`` is empty.
|
||||||
|
|
||||||
|
|
||||||
Release 1.0.3 (Aug 23, 2010)
|
Release 1.0.3 (Aug 23, 2010)
|
||||||
============================
|
============================
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ def load_mappings(app):
|
|||||||
env = app.builder.env
|
env = app.builder.env
|
||||||
if not hasattr(env, 'intersphinx_cache'):
|
if not hasattr(env, 'intersphinx_cache'):
|
||||||
env.intersphinx_cache = {}
|
env.intersphinx_cache = {}
|
||||||
|
env.intersphinx_inventory = {}
|
||||||
|
env.intersphinx_named_inventory = {}
|
||||||
cache = env.intersphinx_cache
|
cache = env.intersphinx_cache
|
||||||
update = False
|
update = False
|
||||||
for key, value in app.config.intersphinx_mapping.iteritems():
|
for key, value in app.config.intersphinx_mapping.iteritems():
|
||||||
|
|||||||
Reference in New Issue
Block a user