8000 Merge pull request #9427 from cgohlke/patch-6 · matplotlib/matplotlib@d3555cb · GitHub
[go: up one dir, main page]

Skip to content

Commit d3555cb

Browse files
authored
Merge pull request #9427 from cgohlke/patch-6
Fix NameError: name 'exc' is not defined
2 parents 281a1cd + 260d2ac commit d3555cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_bases.py

Lines 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