From 7b76751e8f1037ee7c71de182ba751673cfd90fc Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 9 Oct 2018 13:51:29 +0200 Subject: [PATCH] Update get_history.py --- examples/get_history.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/get_history.py b/examples/get_history.py index 433d127c..0466fc96 100644 --- a/examples/get_history.py +++ b/examples/get_history.py @@ -33,8 +33,7 @@ app.start() while True: try: m = app.get_history(target, offset_id=offset_id) - except FloodWait as e: - # For very large chats the method call can raise a FloodWait + except FloodWait as e: # For very large chats the method call can raise a FloodWait print("waiting {}".format(e.x)) time.sleep(e.x) # Sleep X seconds before continuing continue