Python Flask Basics Character Builder Flash Messages

Ian Baylis
Ian Baylis
5,744 Points

jinja2.exceptions.UndefinedError: 'list object' has no attribute 'get'

Did I miss something?

<div class="wrap no-bottom messages"> {% with messages = get_flashed_messages() %} {% if messages %} <ul class="flashes"> {% for message in messages %} <li>{{ message }}</li> {% endfor %} </ul> {% endif %} {% endwith %} </div>