Skip to content

Commit 7b76751

Browse files
committed
Update get_history.py
1 parent bd121be commit 7b76751

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/get_history.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
while True:
3434
try:
3535
m = app.get_history(target, offset_id=offset_id)
36-
except FloodWait as e:
37-
# For very large chats the method call can raise a FloodWait
36+
except FloodWait as e: # For very large chats the method call can raise a FloodWait
3837
print("waiting {}".format(e.x))
3938
time.sleep(e.x) # Sleep X seconds before continuing
4039
continue

0 commit comments

Comments
 (0)