Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Attempting to access non-existing helpers should raise HelperException #3041

@brew

Description

@brew

CKAN Version if known (or site URL)

2.6a, master

Please describe the expected behaviour

If helper function is called in a template, but the function doesn't exist, a ckan.exceptions.HelperError should be raised.

Please describe the actual behaviour

A jinja.exceptions.UndefinedError is raised.

What steps can be taken to reproduce the issue?

Add {{ h.not_here() }} to the base.html template and request the index page.

PR on its way.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions