Skip to content

Fix wrong _ function reference in user blueprint #5046

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

Merged
merged 1 commit into from
Nov 4, 2019

Conversation

amercader
Copy link
Member

This was causing an exception as it override the reference to the i18n _ function below

  File "/srv/app/src/ckan/ckan/views/user.py", line 87, in before_request
    base.abort(403, _(u'Not authorized to see this page'))
TypeError: 'unicode' object is not callable

@amercader
Copy link
Member Author

@smotornyuk an easy one on the user blueprint

@smotornyuk
Copy link
Member

Yep, my bad - i've used to assign any garbage to underscore

@smotornyuk smotornyuk merged commit 5ec3f8c into master Nov 4, 2019
@davidread davidread deleted the fix-exception-on-user-blueprint branch December 13, 2019 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants