Skip to content

Commit 7edaa51

Browse files
authored
Update create_invite_link.py
Removed while loop
1 parent 6bb47e9 commit 7edaa51

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/create_invite_link.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,4 @@ def newmember(msg):
2929

3030

3131

32-
while True:
33-
try:
34-
bot.infinity_polling()
35-
except:
36-
sleep(0.04)
32+
bot.infinity_polling()

0 commit comments

Comments
 (0)