Skip to content

Commit ee854d7

Browse files
committed
style tweak
1 parent aa6b4a9 commit ee854d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/dtypes/common.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,7 @@ def is_datetime64_dtype(arr_or_dtype):
392392
return False
393393
try:
394394
tipo = _get_dtype_type(arr_or_dtype)
395-
except TypeError:
396-
return False
397-
except UnicodeEncodeError:
395+
except (TypeError, UnicodeEncodeError) as e:
398396
return False
399397
return issubclass(tipo, np.datetime64)
400398

0 commit comments

Comments
 (0)