Skip to content

Commit

Permalink
Fallback for ValueError as well (#3211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease authored Sep 30, 2023
1 parent da0de55 commit cdcbc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion altair/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def parse_shorthand(
column = dfi.get_column_by_name(unescaped_field)
try:
attrs["type"] = infer_vegalite_type_for_dfi_column(column)
except (NotImplementedError, AttributeError):
except (NotImplementedError, AttributeError, ValueError):
# Fall back to pandas-based inference.
# Note: The AttributeError catch is a workaround for
# https://github.com/pandas-dev/pandas/issues/55332
Expand Down

0 comments on commit cdcbc90

Please sign in to comment.