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

Skip to content

Commit 11b1c4b

Browse files
committed
add a comment to TypeError
1 parent e2381b5 commit 11b1c4b

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)