Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59cb7b0

Browse files
committed
fix leaked exception in RRuleLocator.tick_values
1 parent 7f5ff2b commit 59cb7b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def tick_values(self, vmin, vmax):
845845

846846
try:
847847
stop = vmax + delta
848-
except ValueError:
848+
except (ValueError, OverflowError):
849849
# The magic number!
850850
stop = _from_ordinalf(3652059.9999999)
851851

0 commit comments

Comments
 (0)