Bibo-Joshi · GitHub

So I was testing all combinations of block=False/True of ConversationHandler with the handlers in entry_points, states and fallbacks, and noticed that when ConvHandler(..., block=False), the exception thrown from one entry point isn't discarded correctly, and when another entry point is run, the same exception is printed again.

MRE: https://nekobin.com/modoxayexo

Steps to reproduce:

  1. Run bot, send /start. You'll see in start printed along with the exception.
  2. Now send /start2. You'll see the same exception printed again, and then in start2 is printed to console.
  3. State is correctly switched to GENDER though.

Expected behavior:
In step 2, the exception should not be printed again. This is indeed the behaviour when ConvHandler(..., block=True).

Read the original on github.com ↗