Skip to content

AttributeError in Registry class when asserting #91

Closed
@geertjanvdk

Description

@geertjanvdk

I had a situation where I wanted to recreate the SQLAlchemyObjectType, creating a new type. This does not work out of the box with Registry (which is OK), and an assert is thrown.

However, the assert itself has an problem:

..../api/graphql/types.py:74: in __init_subclass_with_meta__
    registry.register(cls)
../../../venv/lib/python3.6/site-packages/graphene_sqlalchemy/registry.py:12: in register
    'received "{}"'
E   AttributeError: 'tuple' object has no attribute 'format'

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