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

search_home route raises AttributeError for missing search components #11532

Open
jacobtylerwalls opened this issue Oct 8, 2024 · 0 comments · Fixed by #11533
Open

search_home route raises AttributeError for missing search components #11532

jacobtylerwalls opened this issue Oct 8, 2024 · 0 comments · Fixed by #11533
Assignees

Comments

@jacobtylerwalls
Copy link
Member

jacobtylerwalls commented Oct 8, 2024

  • Visit /search?search-view=nonexistent

We could respond with 404 instead of letting AttributeError escape.

Will send a fix that I cooked up while following along with the walk through from the dev meeting, which I very much enjoyed :-)

Traceback (most recent call last):
  File "/Users/jwalls/prj/arches/arches/app/views/search.py", line 84, in get
    search_components = searchview_instance.get_searchview_filters()
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Exception Type: AttributeError at /search
Exception Value: 'NoneType' object has no attribute 'get_searchview_filters'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In Review
Development

Successfully merging a pull request may close this issue.

1 participant