Skip to content

Commit

Permalink
fix: issue #3519
Browse files Browse the repository at this point in the history
  • Loading branch information
binghuis authored and julian-smith-artifex-com committed Jun 3, 2024
1 parent ec4497b commit 7441212
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,8 @@ def getLinkDict(ln, document=None) -> dict:
assert 0, f'Unexpected {type(ln)=}.'
nl = {"kind": dest.kind, "xref": 0}
try:
nl["from"] = ln.rect
if hasattr(ln, 'rect'):
nl["from"] = ln.rect
except Exception:
# This seems to happen quite often in PyMuPDF/tests.
if g_exceptions_verbose >= 2: pymupdf.exception_info()
Expand Down

0 comments on commit 7441212

Please sign in to comment.