Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dab0e8f

Browse files
committed
Don't cache exception with traceback reference loop in dviread.
Rather, preemptively cache the reference loop by explicitly dropping the traceback. See also db0c7c3.
1 parent 13380e1 commit dab0e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dviread.py

Lines changed: 1 addition & 1 deletion
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)