Skip to content

Commit

Permalink
bug for plot tag validation
Browse files Browse the repository at this point in the history
  • Loading branch information
otvam committed Nov 13, 2024
1 parent f6b19ad commit 57550ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pypeec/lib_check/check_data_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ def check_tag_list(data_check, tag_list):
jsonschema.validate(instance=tag_list, schema=schema)

# check tag
for tag in tag_list:
if tag not in tag_allowed:
raise ValueError("invalid plot tag: %s" % tag)
if tag_list is not None:
for tag in tag_list:
if tag not in tag_allowed:
raise ValueError("invalid plot tag: %s" % tag)


def check_plot_options(plot_mode, folder, name):
Expand Down

0 comments on commit 57550ff

Please sign in to comment.