Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24a40b5

Browse filesBrowse files
committed
Expand 3D import to handle any exception not just ImportError
Needed for the same reasons as #27178 (Namely that we should not be failing on import just because mpl_toolkits is broken), but mpl 3.6 presents with an AttributeError rather than ImportError See discussion in #26827 and #27289 Just expanded liberally in case there are other presentations we have not seen
1 parent caa7d42 commit 24a40b5
Copy full SHA for 24a40b5

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/projections/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/__init__.py
+1-1Lines 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:
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.