Skip to content

Commit 9911b12

Browse files
authored
Merge pull request #27294 from meeseeksmachine/auto-backport-of-pr-27291-on-v3.8.x
Backport PR #27291 on branch v3.8.x (Expand 3D import to handle any exception not just ImportError)
2 parents daa417a + d88a3d3 commit 9911b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/projections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
try:
6060
from mpl_toolkits.mplot3d import Axes3D
61-
except ImportError:
61+
except Exception:
6262
import warnings
6363
warnings.warn("Unable to import Axes3D. This may be due to multiple versions of "
6464
"Matplotlib being installed (e.g. as a system package and as a pip "

0 commit comments

Comments
 (0)