fix(validate.py): raise an exception with a message when node is not found

feat(GenericNode): add node validation with outline color feedback
feat(tailwind.config.js): add styles for outline colors and animations
This commit is contained in:
Gabriel Almeida 2023-04-24 13:43:52 -03:00
commit f122151b12
3 changed files with 100 additions and 33 deletions

View file

@ -47,7 +47,7 @@ def post_validate_node(node_id: str, data: dict):
if node is not None:
_ = node.build()
return node.params
raise
raise Exception(f"Node {node_id} not found")
except Exception as e:
logger.exception(e)
raise HTTPException(status_code=500, detail=str(e)) from e