Sunday, May 26, 2013

parsing TweepError

So if you're using Tweepy and you want to parse the TweepError error string returned on an exception, Python's ast.liter_eval comes in really handy.

Here is one of the shorter gists you'll see:  tweepy_error

If you're not using Tweepy I suggest you consider it, I've had very good luck with it.

Much thanks to the maintainers for their hard work.

No comments: