When running the Python example from the main page https://docs.falkordb.com/
I get an exception:
redis.exceptions.ResponseError: Invalid graph operation on empty key
This happens as it tries to delete a not-existing graph.
If there is an exists method that would be probably the best to call that, but at least it could be wrapped in a try - except block
try:
g.delete()
except Exception:
# Graph doesn't exist yet, which is fine
pass
When running the Python example from the main page https://docs.falkordb.com/
I get an exception:
This happens as it tries to
deletea not-existing graph.If there is an
existsmethod that would be probably the best to call that, but at least it could be wrapped in atry-exceptblock