Skip to content

Commit d3bf198

Browse files
authored
Safeguard attr access
1 parent 62c8933 commit d3bf198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/render/_data_frame_utils/_tbl_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def serialize_dtype(col: nw.Series) -> FrameDtype:
202202
type_ = "datetime"
203203
elif isinstance(dtype, nw.Duration):
204204
type_ = "duration"
205-
elif isinstance(dtype, nw.Time):
205+
elif hasattr(nw, "Time") and isinstance(dtype, nw.Time):
206206
type_ = "time"
207207
elif isinstance(dtype, nw.Object):
208208
type_ = "object"

0 commit comments

Comments
 (0)