changeset 7:dfbb21128332

merge commit
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 25 Nov 2010 13:09:23 -0800
parents 3cb8ad35fe62 (current diff) da132a64926e (diff)
children 76b8f41da4cf
files bitsytweet/__init__.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitsytweet/__init__.py	Thu Nov 25 13:07:37 2010 -0800
+++ b/bitsytweet/__init__.py	Thu Nov 25 13:09:23 2010 -0800
@@ -1,5 +1,5 @@
 """
-BitsyTweet
+BitsyTweet - tweet your bitsyblog entries (horrid, I know)
 """
 
 import sys
@@ -16,7 +16,12 @@
   def __call__(self, blog_entry, url):
     if blog_entry.privacy == 'public': # only tweet public blogs
       tweet = '%s : %s' % (blog_entry.snippet(), url)
-      self.api.PostUpdate(tweet)
+      print 'Tweeting: %s' % tweet
+      try:
+        self.api.PostUpdate(tweet)
+      except Exception, e:
+        print >> sys.stderr, "Couldn't tweet %s (%s)" % (url, e)
+      print '</tweet>'
 
 def main(args=sys.argv[1:]):
   """debugging front-end for BitstTweet"""