Catch KeyError resolving numref if target docs does not included in toctree

This commit is contained in:
tk0miya 2014-10-06 18:50:01 +09:00
parent 8270575a9c
commit e0fb54a7bb

View File

@ -632,7 +632,7 @@ class StandardDomain(Domain):
figtype = get_figtype(target)
figure_id = target['ids'][0]
fignumber = env.toc_fignumbers[docname][figtype][figure_id]
except IndexError:
except (KeyError, IndexError):
return None
title = contnode.astext()