def update_status(self, *pargs, **kwargs):
try:<EOL><INDENT>return super(API, self).update_status(*pargs, **kwargs)<EOL><DEDENT>except tweepy.TweepError as e:<EOL><INDENT>if getattr(e, '<STR_LIT>', None) == <NUM_LIT>:<EOL><INDENT>sleep(<NUM_LIT:10>)<EOL>return super(API, self).update_status(*pargs, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>raise e<EOL><DEDENT><DEDENT>
Wrapper for tweepy.api.update_status with a 10s wait when twitter is over capacity