title: How to handle "flood wait" errors when using telethon.sync?
body: <p><strong>Looks like sync version of the client doesn't throw any errors?
  What is the right way to handle errors when working with telethon.sync?</strong></p>
  
  <p>the code below results in client going to "sleep", but no errors are cought. </p>
  
  <p>I tried to do the same with explicit exception for <code>FloodWaitError</code>, it doesn't solve the issue.</p>
  
  <pre><code>from telethon.sync import TelegramClient
  from telethon.tl.functions.channels import GetFullChannelRequest
  
  
  if __name__ == '__main__':
      setup_logging(level=logging.INFO)
  
  tg = TelegramClient(
      'anon',
      api_id=config.API_ID,
      api_hash=config.API_HASH,
  )
  
  with tg as client:
      try:
          result = client(GetFullChannelRequest(-1001100118939))
      except ValueError as e:
          print(e)
          break;
          # print('Flood wait for ', e.seconds)
          # time.sleep(e.seconds)
      print(result)
  </code></pre>