Code review comment for lp://staging/~kai-mast/friends/fix-retweets

Revision history for this message
Robert Bruce Park (robru) wrote :

Still better to just have "shared_status = tweet.get('retweeted_status', {}).get('text', '')" and then you can say "if shared_status: message = 'RT ' + message" or something. Testing a dict before pulling a value from a dict is really bad form in python.

« Back to merge proposal