Hello everyone.
I'm trying to handle the Constraint Validation exceptions into my Python code.
However I'm facing ModuleNotFoundError: No module named 'py2neo.cypher.error' error even after install py2neo==4.1.3.
My code:
from py2neo import Graph
from py2neo.cypher.error.schema import ConstraintViolation
import traceback
...
...
try:
...
...
except ConstraintViolation as e:
print(traceback.format_exc())
...
...
Does anyone already faced this?
How can I solve that?
Many thanks.