Skip to content

"thread:ident=some_id" like params, validation failed #4

@beholderrk

Description

@beholderrk

code like this not working now:

disqus.threads.details(forum=settings.DISQUS_WEBSITE_SHORTNAME, **{'thread:ident': 'some_id'})

because thread:ident don't passed validation in call method of Resource class:

if not kwargs.get(k):
    raise ValueError('Missing required argument: %s' % k)

I replaced this code by:

if k not in [ x.split(':')[0] for x in kwargs.keys() ]:
    raise ValueError('Missing required argument: %s' % k)

https://github.com/disqus/disqus-python/blob/master/disqusapi/__init__.py#L120

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions