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 89a187c

Browse filesBrowse files
anntzerMeeseeksDev[bot]
authored andcommitted
Backport PR #9427: Fix NameError: name 'exc' is not defined
1 parent 50f1f1f commit 89a187c
Copy full SHA for 89a187c

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/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ def _get_uniform_gridstate(ticks):
26062606
elif scalex == 'linear':
26072607
try:
26082608
ax.set_xscale('log')
2609-
except ValueError:
2609+
except ValueError as exc:
26102610
warnings.warn(str(exc))
26112611
ax.set_xscale('linear')
26122612
ax.figure.canvas.draw_idle()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.