script/lib/iri_tweet/export_twitter_alchemy.py
changeset 379 083320a74eb2
parent 289 a5eff8f2b81d
child 411 0471e6eb8a1b
--- a/script/lib/iri_tweet/export_twitter_alchemy.py	Wed Nov 16 17:47:11 2011 +0100
+++ b/script/lib/iri_tweet/export_twitter_alchemy.py	Mon Nov 21 11:00:34 2011 +0100
@@ -282,8 +282,8 @@
                     username = None
                     profile_url = ""
                     if tw.user is not None:
-                        username = tw.user.name
-                        profile_url = tw.user.profile_image_url
+                        username = tw.user.name                    
+                        profile_url = tw.user.profile_image_url if tw.user.profile_image_url is not None else ""
                     if not username:
                         username = "anon."