Skip to content

Commit

Permalink
add error 'handling' to update_status()
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLaBarba committed Jun 2, 2012
1 parent 91ff0e4 commit 979f872
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tweeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ def tweet(self, message):
else:
print "Your tweet: " + message
# Alternative
# self.api.update_status(message)
try:
self.api.update_status(message)
except:
logging.error("something broke with the update_status_call")
logger.debug('tweet complete')
return 0

0 comments on commit 979f872

Please sign in to comment.