Hi Forum,
System.tag.addTag fails silently:
Code example: (pretty bad returns, anyway.., this always gives OK") even if it's not supposed to give OK:
value = request["postData"]
try:
system.tag.addTag(**value)
return {"json": "OK"}
except Exception as e:
return {"json": "ERROR"}
example tested:
{
"parentPath": "",
"name": "TagMemory",
"tagType": "MEMORY",
"dataType": "Int2",
"value": 26
}
-> Created successfully
{
"parentPath": "",
"name": "TagMemory",
"tagType": "MEMORY",
"dataType": "Int2",
"value": 28
}
-> No change on the tag, and also returns Ok