I am making a small flask application where I had something like this:
@app.route('/bye') def logout(): session.pop('logged_in', None) flash('Adiós') return redirect('/index')
Needless to say, when I started the application and I switched to '/ bye', it gave me a UnicodeDecodeError. Well, now it gives me the same unicodedecodeerror on every page, which extends the base template (which sends messages) even after the application restarts. and always with the same dump (), despite the removal of this flash in the source code. All I can think of is that shit? Help me please.
Well, I had to restart the computer to clear the stupid session cache or something like that.
source share