Skip to content

DB AssertionFInder connection() takes 0 positional arguments but 1 was given #323

@mhennessy8

Description

@mhennessy8

The last update to conceptnet5/db/query.py (b744e34) changed the "connection" attribute in the AssertionFinder class to be a property. However, the execution of line 231 cursor = self.connection.cursor() throws an error because the connection property is missing the self argument. This issue can be resolved easily by changing Line 128 def connection(): to def connection(self):.

As it stands, this bug breaks the master branch of conceptnet.

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