Skip to content

Commit

Permalink
Update list_node.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora-Olivia-Ammann committed Apr 26, 2024
1 parent 20203f7 commit 6ca883a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dsp_tools/commands/excel2json/models/list_node.py
Expand Up @@ -86,9 +86,8 @@ def create(
user_problem["labels"] = "At least one label per list is required."
elif not set(labels).issubset({"en", "de", "fr", "it", "rm"}):
user_problem["labels"] = "Only the following languages are supported: 'en', 'de', 'fr', 'it', 'rm'."
if comments:
if not set(comments).issubset({"en", "de", "fr", "it", "rm"}):
user_problem["comments"] = "Only the following languages are supported: 'en', 'de', 'fr', 'it', 'rm'."
if not set(comments).issubset({"en", "de", "fr", "it", "rm"}):
user_problem["comments"] = "Only the following languages are supported: 'en', 'de', 'fr', 'it', 'rm'."
if not nodes:
user_problem["list nodes"] = "At least one node per list is required."
if user_problem:
Expand Down

0 comments on commit 6ca883a

Please sign in to comment.