Merge with 5e478d82136e2d4fadfb5708bc947dedfd121545
authorRaphael Velt <raph.velt@gmail.com>
Tue, 22 Nov 2011 13:28:12 +0100
changeset 388 4b9942583f33
parent 385 886bfa7441d0 (current diff)
parent 387 fb49f0ae1b4d (diff)
child 389 d92c38c912ec
Merge with 5e478d82136e2d4fadfb5708bc947dedfd121545
--- a/script/lib/iri_tweet/export_twitter_alchemy.py	Tue Nov 22 13:25:43 2011 +0100
+++ b/script/lib/iri_tweet/export_twitter_alchemy.py	Tue Nov 22 13:28:12 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."