AttributeError: 'NoneType' object has no attribute 'modified' #119
Replies: 2 comments
-
|
What worked for me was installing an older version of flask. The version I did was flask==2.2.5 |
Beta Was this translation helpful? Give feedback.
-
|
This isn't actually a xero-python issue — the traceback is in Two clean fixes:
Pinning Flask down works but leaves you on an old Flask; upgrading Flask-Session is the better long-term fix. After switching, clear your session backend (e.g. delete the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need help, I'm encountering this error below when I run my app on localhost:5000. Can you please help me to fix this error?
"
File "/Users/lesmacbookpro/Desktop/Xero/THE RIGHT ONE/xero-python-oauth2-starter-master/venv/lib/python3.11/site-packages/flask_session/sessions.py", line 343, in save_session
if session.modified:
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'modified'
127.0.0.1 - - [19/Aug/2023 18:12:19] "GET / HTTP/1.1" 500 -"
Beta Was this translation helpful? Give feedback.
All reactions