Skip to content

Commit

Permalink
stringify to fix TypeError: must be str, not list
Browse files Browse the repository at this point in the history
  • Loading branch information
VickiLanger committed Nov 19, 2020
1 parent 157daf3 commit 458011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweet_annual_days.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def tweet_annual_event():

if length_list_event_tweets != 0:
if length_list_event_tweets > 1:
event_tweet = tweet_template + choice(list_of_event_tweets)
event_tweet = tweet_template + str(choice(list_of_event_tweets))
else:
event_tweet = tweet_template + list_of_event_tweets[0] # str(list_of_event_tweets) == ['a good day for testing yet another feature in production. We now support annual events with variable dates like "5th Friday of October"']
api.update_status(event_tweet)
Expand Down

0 comments on commit 458011e

Please sign in to comment.