Join GitHub today
Legacy webapp fails to initialize settlement; boots users #502
Legacy webapp crash email:
assets.Settlement.init() calls set_settlement(), which sometimes bombs. Here's that method:
I've gotten three of these since the last release, so there's something going on here.
It appears to be affecting new and older users: last night's user is 168 days old and the one from the 13th (two days ago) was brand new at the time.
Kind of scratching my head here.
Turns out that session.Session.change_current_view() was only setting self.session['current_settlement'] for the 'view_campaign' view, i.e. not for 'view_settlement'.
The result was that we were duck-typing None to an OID and thus getting an invalid settlement ID, etc.
This legacy webapp really...needs to go away.
Anyway, fix will be deployed in the next release.