Skip to content

Commit 70fad9a

Browse files
author
Dave Bell
authored
Update loremricksum.py
1 parent 9abbaae commit 70fad9a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

loremricksum.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ def on_status(self, status):
3737
username = status.user.screen_name
3838
status_id = status.id
3939
if 'in_reply_to_status' in data:
40-
favorite(status_id)
41-
tweetReply(username, status_id)
42-
except tweepy.TweepError as e:
43-
print((e.reason))
44-
tweetReply(username, status_id)
40+
try:
41+
favorite(status_id)
42+
tweetReply(username, status_id)
43+
except tweepy.TweepError as e:
44+
print((e.reason))
45+
tweetReply(username, status_id)
4546
else:
4647
favorite(status_id)
4748

0 commit comments

Comments
 (0)