mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
commit
00cd12e7e2
@ -1107,7 +1107,7 @@ class StandardDomain(Domain):
|
||||
|
||||
|
||||
def warn_missing_reference(app: "Sphinx", domain: Domain, node: pending_xref) -> bool:
|
||||
if domain.name != 'std' or node['reftype'] != 'ref':
|
||||
if (domain and domain.name != 'std') or node['reftype'] != 'ref':
|
||||
return None
|
||||
else:
|
||||
target = node['reftarget']
|
||||
|
Loading…
Reference in New Issue
Block a user