X Tutup
Skip to content

Commit 83bc08a

Browse files
authored
Merge pull request bear#411 from h1994st/master
Update api.py
2 parents dc13a39 + 13dd590 commit 83bc08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitter/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ def _TweetTextWrap(self,
14351435
line_length = 0
14361436
words = re.split(r'\s', status)
14371437

1438-
if len(words) == 1 and not is_url(words):
1438+
if len(words) == 1 and not is_url(words[0]):
14391439
if len(words[0]) > 140:
14401440
raise TwitterError({"message": "Unable to split status into tweetable parts. Word was: {0}/{1}".format(len(words[0]), char_lim)})
14411441
else:

0 commit comments

Comments
 (0)
X Tutup