8000 Merge pull request #15741 from meeseeksmachine/auto-backport-of-pr-15… · matplotlib/matplotlib@b732593 · GitHub
[go: up one dir, main page]

Skip to content

Commit b732593

Browse files
authored
Merge pull request #15741 from meeseeksmachine/auto-backport-of-pr-15729-on-v3.1.x
Backport PR #15729 on branch v3.1.x (Catch correct parse errror type for dateutil >= 2.8.1)
2 parents f031a97 + 5d25e96 commit b732593

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/category.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def _str_is_convertible(val):
191191
except ValueError:
192192
try:
193193
dateutil.parser.parse(val)
194-
except ValueError:
194+
except (ValueError, TypeError):
195+
# TypeError if dateutil >= 2.8.1 else ValueError
195196
return False
196197
return True
197198

0 commit comments

Comments
 (0)
0