Issues

Issue #512 resolved

intersphinx fails if intersphinx_mapping not defined.

Michael Forbes
created an issue

If for some reason the user fails to define the intersphinx_mapping dictionary, then intersphinx can fail with an exception on line 201 of intersphinx.py that intersphinx_inventory is not a member of env:

{{{ to_try = [(env.intersphinx_inventory, target)] }}}

While this might be considered an error in the configuration, the extension should gracefully handle this, for example, by including the following at line 153:

{{{ if not hasattr(env, 'intersphinx_inventory'): env.intersphinx_inventory = {} if not hasattr(env, 'intersphinx_named_inventory'): env.intersphinx_named_inventory = {} }}}

Comments (2)

  1. Log in to comment