Skip to content

Commit

Permalink
Merge branch 'altair-viz:main' into doc_shaded_region
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaLingWeng authored Nov 9, 2023
2 parents 792d1b4 + dbe799e commit 7dc9279
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions altair/utils/mimebundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,10 @@ def _validate_normalize_engine(
elif altair_saver is not None:
normalized_engine = "altairsaver"
else:
if format == "pdf":
raise ValueError(
"Saving charts in {fmt!r} format requires the altair_saver package: "
"see http://github.com/altair-viz/altair_saver/".format(fmt=format)
)
else:
raise ValueError(
"Saving charts in {fmt!r} format requires the vl-convert-python or altair_saver package: "
"see http://github.com/altair-viz/altair_saver/".format(fmt=format)
)
raise ValueError(
"Saving charts in {fmt!r} format requires the vl-convert-python or altair_saver package: "
"see http://github.com/altair-viz/altair_saver/".format(fmt=format)
)
else:
raise ValueError(
"Invalid conversion engine {engine!r}. Expected one of {valid!r}".format(
Expand Down

0 comments on commit 7dc9279

Please sign in to comment.