diff --git a/api/s8_tags.py b/api/s8_tags.py index 8ae4a5d..18fc1cd 100644 --- a/api/s8_tags.py +++ b/api/s8_tags.py @@ -76,6 +76,8 @@ def set_tag_cmd(name: str, cs: ChangeSet) -> DbChangeSet: def set_tag(name: str, cs: ChangeSet) -> ChangeSet: + if 't_type' not in cs.operations[0] or 'id' not in cs.operations[0] or 'tag' not in cs.operations[0]: + return ChangeSet() return execute_command(name, set_tag_cmd(name, cs))