Skip to content

Commit e620e04

Browse files
committed
add a comment to TypeError
1 parent a4c629b commit e620e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3288,7 +3288,7 @@ def check_if_negative(array):
32883288
try:
32893289
if np.any(array < 0):
32903290
return True
3291-
except:
3291+
except TypeError: # Don't fail on 'datetime.*' types
32923292
pass
32933293

32943294
if xerr is not None and check_if_negative(xerr):

0 commit comments

Comments
 (0)