Skip to content

Commit bb68469

Browse files
authored
Merge pull request matplotlib#28899 from anntzer/wtn
Don't cache exception with traceback reference loop in dviread.
2 parents e90952f + dab0e8f commit bb68469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dviread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def _fnt_def_real(self, k, c, s, d, a, l):
504504
# and throw that error in Dvi._read. For Vf, _finalize_packet
505505
# checks whether a missing glyph has been used, and in that case
506506
# skips the glyph definition.
507-
self.fonts[k] = exc
507+
self.fonts[k] = exc.with_traceback(None)
508508
return
509509
if c != 0 and tfm.checksum != 0 and c != tfm.checksum:
510510
raise ValueError(f'tfm checksum mismatch: {n}')

0 commit comments

Comments
 (0)