We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc13a39 + 13dd590 commit 83bc08aCopy full SHA for 83bc08a
twitter/api.py
@@ -1435,7 +1435,7 @@ def _TweetTextWrap(self,
1435
line_length = 0
1436
words = re.split(r'\s', status)
1437
1438
- if len(words) == 1 and not is_url(words):
+ if len(words) == 1 and not is_url(words[0]):
1439
if len(words[0]) > 140:
1440
raise TwitterError({"message": "Unable to split status into tweetable parts. Word was: {0}/{1}".format(len(words[0]), char_lim)})
1441
else:
0 commit comments