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:
- Run bot, send
/start. You'll seein startprinted along with the exception. - Now send
/start2. You'll see the same exception printed again, and thenin start2is printed to console. - State is correctly switched to
GENDERthough.
Expected behavior:
In step 2, the exception should not be printed again. This is indeed the behaviour when ConvHandler(..., block=True).