#512: Fix traceback when `intersphinx_mapping` is empty.

This commit is contained in:
Georg Brandl
2010-08-25 10:05:23 +00:00
parent 7c9f3537b1
commit d7e37da324
2 changed files with 4 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
Release 1.0.4 (in development)
==============================
* #512: Fix traceback when ``intersphinx_mapping`` is empty.
Release 1.0.3 (Aug 23, 2010)
============================

View File

@@ -141,6 +141,8 @@ def load_mappings(app):
env = app.builder.env
if not hasattr(env, 'intersphinx_cache'):
env.intersphinx_cache = {}
env.intersphinx_inventory = {}
env.intersphinx_named_inventory = {}
cache = env.intersphinx_cache
update = False
for key, value in app.config.intersphinx_mapping.iteritems():