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

Skip to content

Commit 09fa321

Browse files
committed
MNT: simplify the error reporting in agg chunk overflows
1 parent 0f0ea22 commit 09fa321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_agg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
163163
f"= {path.simplify_threshold:.2f} "
164164
"on the input)."
165165
)
166-
raise OverflowError(msg) from err
166+
raise OverflowError(msg) from None
167167
else:
168168
try:
169169
self._renderer.draw_path(gc, path, transform, rgbFace)
@@ -207,7 +207,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
207207
+ inc_threhold
208208
)
209209

210-
raise OverflowError(msg) from err
210+
raise OverflowError(msg) from None
211211

212212
def draw_mathtext(self, gc, x, y, s, prop, angle):
213213
"""Draw mathtext using :mod:`matplotlib.mathtext`."""

0 commit comments

Comments
 (0)