Skip to content

Commit

Permalink
fix(linker): fix early return if context is a complex text
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Nov 15, 2023
1 parent a10d8ca commit 10df8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sefaria/model/linker/ref_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def get_section_set(index: text.Index) -> Set[Tuple[str, str, bool]]:
return []

context_node = context_ref.index_node
if not hasattr(context_node, 'addressType'):
if not hasattr(context_node, 'addressTypes'):
# complex text
return []
referenceable_sections = getattr(context_node, 'referenceableSections', [True]*len(context_node.addressTypes))
Expand Down

0 comments on commit 10df8a7

Please sign in to comment.