You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-11-13 10:37:24,260;app;log_exception;ERROR;Exception on /jupyterlab [GET]
Traceback (most recent call last):
File "/usr/local/af-portal/venv/lib64/python3.6/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/af-portal/venv/lib64/python3.6/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/af-portal/venv/lib64/python3.6/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/af-portal/venv/lib64/python3.6/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "./portal/decorators.py", line 176, in inner
return render_template('request_membership.html', role=role)
UnboundLocalError: local variable 'role' referenced before assignment
Seems to be because the
role
variable only exists in the scope of theif profile
block here: https://github.com/maniaclab/af-portal/blob/main/portal/decorators.py#L160-L177Probably we should render a page telling the user there was a problem getting profile information in that case, and ask them to try again.
The text was updated successfully, but these errors were encountered: