Skip to content

Commit

Permalink
Make check simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
A-CGray committed Feb 14, 2024
1 parent 7c5e6bf commit 20cb018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niceplots/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def save_figs(fig, name, formats, format_kwargs=None, **kwargs):
fileName = os.path.splitext(name)[0]

# --- Convert the file format to a list if only one given ---
if not isinstance(formats, Iterable) or isinstance(formats, str):
if isinstance(formats, str):
formats = [formats]

# --- Save the figures ---
Expand Down

0 comments on commit 20cb018

Please sign in to comment.