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