Skip to content

Commit 62eb6b7

Browse files
committed
Fix logic for checking calc_bit input
#269
1 parent a358ed2 commit 62eb6b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py/kaleido/kaleido.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ async def calc_fig(
313313
`write_fig` does, although its arguments are a subset of those of `write_fig`.
314314
This function is currently just meant to bridge the old and new API.
315315
"""
316-
if not hasattr(fig, "to_dict") or isinstance(fig, Iterable):
316+
if not hasattr(fig, "to_dict") and isinstance(fig, Iterable):
317317
raise TypeError("Calc fig can not process multiple images at a time.")
318318
spec, full_path = build_fig_spec(fig, path, opts)
319319
tab = await self._get_kaleido_tab()

0 commit comments

Comments
 (0)