Commits

Anonymous committed ed3c0f5

Fixed issue when twitter user does not have profile image

Comments (0)

Files changed (1)

syncr/app/tweet.py

                         'description': user.description,
                         'location': user.location,
                         'name': user.name,
-                        'thumbnail_url': user.profile_image_url,
+                        'thumbnail_url': getattr(user, 'profile_image_url', ''),
                         'url': user.url,
                         }
         obj, created = TwitterUser.objects.get_or_create(screen_name = user.screen_name,