Skip to content

__str__ on ListResource still calls count() #219

@josefdlange

Description

@josefdlange

Looks like ListResource.count() was removed, but str on the class still tries to call it.

This results in a raised exception, particularly for me within my exception handler, where I am attempting to parse out the stack frames of a given (in this case one from Twilio) exception. This means that my exception handler fails, and I don't get any insight about what's going on.

See: https://github.com/twilio/twilio-python/blob/master/twilio/rest/resources/base.py#L435

Let me know if there's anything I can do to help. I don't quite have the bandwidth to fork, make changes, and write tests at the moment.

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