certat/do-portal

Error 500 upon login after with demodata setup

Closed this issue · 4 comments

A user reported that he had to change line 600 in app/models.py from:

self._org_ids = [org.organization.id for org in orgs_admins]

to

    self._org_ids = [org.organization.id [lookup host] for org in orgs_admins if org.organization ]

In order to get rid of error 500 upon login. Setup with docker as documented. Branch master.

Can't try to reproduce at the moment because of #116

could you please provide the error report from the user?

This is the stacktrace which I got:

screenshot

testing on master - the fix seems rather mysterious to me

tried and could not reproduce