Skip to content

Tweepy throws uncaught exceptions when Tweeting #14

@fraz3alpha

Description

@fraz3alpha

When tweeting the status of the dance floor the calls to the Tweepy API are not contained within any try/except blocks, so any errors stop the program.
This is most evident when we tweet our status, and Twitter thinks that it is a duplicate status, so chooses not to allow it - and throws an exception.

e.g.

Tweet from @LED_Dance_Floor
Not replying to ourselves
2016-03-23 13:40:19,845 - __main__:578 - INFO - An error occurred loading plugins from fireworks.py
2016-03-23 13:40:19,846 - __main__:579 - INFO - [{u'message': u'Status is a duplicate.', u'code': 187}]
2016-03-23 13:40:19,846 - __main__:580 - INFO - (<class 'tweepy.error.TweepError'>, TweepError([{u'message': u'Status is a duplicate.', u'code': 187}],), <traceback object at 0x7f600a277710>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions