Skip to content

Commit

Permalink
fix: None is an allowed format value
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed May 24, 2024
1 parent b4145af commit d03a000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyobsplot/obsplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def __call__(
format_options = self.format_options

allowed_formats = ["html", "png", "svg"]
if format not in allowed_formats:
if format is not None and format not in allowed_formats:
msg = f"Invalid format: {format}.\n Allowed formats: {allowed_formats}."
raise ValueError(msg)

Expand Down

0 comments on commit d03a000

Please sign in to comment.