8000 MNT: Reraise the same exception · matplotlib/matplotlib@2ce78a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ce78a7

Browse files
committed
MNT: Reraise the same exception
Fixed a sloppy copy/paste in py2/py3 compatible reraising
< 8000 /div>
1 parent fdfb92b commit 2ce78a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mpl_toolkits/axes_grid1/axes_rgb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import numpy as np
77
from .axes_divider import make_axes_locatable, Size, locatable_axes_factory
88
import sys
9-
import warnings
109

1110
def make_rgb_axes(ax, pad=0.01, axes_class=None, add_all=True):
1211
"""
@@ -128,7 +127,7 @@ def __init__(self, *kl, **kwargs):
128127
"_defaultAxesClass attribute. If you are not sure which "
129128
"axes class to use, consider using "
130129
"mpl_toolkits.axes_grid1.mpl_axes.Axes.")
131-
six.reraise(KeyError, AttributeError(new_msg),
130+
six.reraise(AttributeError, AttributeError(new_msg),
132131
sys.exc_info()[2])
133132

134133
ax = axes_class(*kl, **kwargs)

0 commit comments

Comments
 (0)
0