Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

TwitterError standard form #179

@ghost

Description

I think it would be much better to raise errors that have common form: for example a dictionary with number, message and so on. Even if some of them will be empty it is still easier to parse than check what's inside that error, if it is a list of dictionary, string or something else. For example: if you try to get timeline from user that doesn't exist, it returns:
twitter.TwitterError([{u'code': 34, u'message': u'Sorry, that page does not exist'}])
but when you try to access user with private tweets it raises only that:
twitter.TwitterError(u'Not authorized.')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions