I want to check and see whether there are flashed messages in my Flask app. However, if I call get_flashed_messages(), then the items are drained from the message stack.
How can I "peek" or read the flashed messages without consuming them?
I want to check and see whether there are flashed messages in my Flask app. However, if I call get_flashed_messages(), then the items are drained from the message stack.
How can I "peek" or read the flashed messages without consuming them?