Commits

Georg Brandl  committed 45f2780

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

  • Participants
  • Parent commits e84b1c1

Comments (0)

Files changed (2)

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

File sphinx/ext/intersphinx.py

     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():