Added exception printing, moved last_temp_tweet before function that modifies it.