mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed #1974: UnboundLocalError: local variable 'domain' referenced before assignment when using any
role and sphinx.ext.intersphinx
in same time.
This commit is contained in:
parent
df3643722f
commit
f21a3039a0
2
CHANGES
2
CHANGES
@ -61,6 +61,8 @@ Bugs fixed
|
||||
config value for 'version' and 'release'.
|
||||
* #2102: On Windows + Py3, using ``|today|`` and non-ASCII date format will raise
|
||||
UnicodeEncodeError.
|
||||
* #1974: UnboundLocalError: local variable 'domain' referenced before assignment when
|
||||
using `any` role and `sphinx.ext.intersphinx` in same time.
|
||||
|
||||
Release 1.3.1 (released Mar 17, 2015)
|
||||
=====================================
|
||||
|
@ -228,6 +228,7 @@ def missing_reference(app, env, node, contnode):
|
||||
objtypes = ['%s:%s' % (domain.name, objtype)
|
||||
for domain in env.domains.values()
|
||||
for objtype in domain.object_types]
|
||||
domain = None
|
||||
else:
|
||||
domain = node.get('refdomain')
|
||||
if not domain:
|
||||
|
Loading…
Reference in New Issue
Block a user