Skip to content

redis.exceptions.ResponseError: Invalid graph operation on empty key #481

@szabgab

Description

@szabgab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions