equalitie / open-corroborator

Data analysis and fact corroboration
http://equalitie.github.io/open-corroborator/
7 stars 3 forks source link

update_last_logout fails to calculate logged_time for invalid session #20

Closed ggaughan closed 8 years ago

ggaughan commented 8 years ago

Error raised by signalled 'update_last_logout' method (models.py)

...
 File "/var/local/sites/corroborator/local/lib/python2.7/site-packages/corroborator_app/models.py", line 1148, in update_last_logout
    logged_time = logout_timestamp - user.last_login
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'

Occurred after session was moved/lost from http to https.

ggaughan commented 8 years ago

Deleting the session cookie worked around this

ggaughan commented 8 years ago

Deployed to demo2 and demo3