How to "peek" Flask's flash messages?

Viewed 44

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?

0 Answers
Related