title: Discord bot async/await in error handling
body: <p>I'm kinda new on Python and I've been trying to understand how async functions work. With that being said, I'm trying to make a Discord bot with a few user inputs so the bot shows a custom embed. That was the easy part because now I'm stuck on the error handling. Once the bot asks for an input, I want it to ask back if that input is not correct or out of range.</p>
  <pre><code>        while True:
            value = await bot.wait_for(&quot;message&quot;, check=check, timeout=150.0)
            try:
              value = int(value.content)
              if value &gt; 0 or value &lt; 10:
                raise ValueError('A very specific bad thing happened.')
              else:
                break
            except:
              ctx.reply(&quot;That's not a valid value&quot;)
  </code></pre>
  <p>I do know my error is on that <code>await</code> inside the loop, but I have no clue how to do it. All I'm looking for is that the bot asks again if it's not correct. _I've been doing a lot of research and I found nothing related to this. Thanks in advance!</p>