Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in showing account/unconfirmed.html #207

Closed
icrxy3dtufi2 opened this issue Oct 9, 2020 · 0 comments
Closed

error in showing account/unconfirmed.html #207

icrxy3dtufi2 opened this issue Oct 9, 2020 · 0 comments

Comments

@icrxy3dtufi2
Copy link

icrxy3dtufi2 commented Oct 9, 2020

File "/app/account/views.py", line 283, in before_request
and request.endpoint[:8] != 'account.'
TypeError: 'NoneType' object is not subscriptable

Facing error with some urls due to error above

Please help and suggest

Something may help:

    if current_user.is_authenticated \
            and not current_user.confirmed \
            and request.endpoint != 'static':
        try:
            if request.endpoint[:8] != 'account.' :
                return redirect(url_for('account.unconfirmed'))
        except:
            pass

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant