[GH-ISSUE #723] [BUG] anon-view KeyError #462

Closed
opened 2026-02-25 20:35:49 +03:00 by kerem · 0 comments
Owner

Originally created by @ghost on GitHub (Apr 15, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/723

Describe the bug
A clear and concise description of what the bug is.
Introduction of Support proxying results through Whoogle (aka "anonymous view") throws a KeyError in results.py:

File "/home/glitsj16/whoogle-search/app/utils/results.py", line 212, in append_anon_view
av_link.string = f'{translation["anon-view"]}'
KeyError: 'anon-view'

To Reproduce
Steps to reproduce the behavior:

  1. Build from git main
  2. Set 'WHOOGLE_CONFIG_ANON_VIEW=1'
  3. Run a search
  4. See error

Deployment Method

  • Heroku (one-click deploy)
  • Docker
  • [ x] run executable
  • pip/pipx
  • Other: [describe setup]

Version of Whoogle Search

  • [ x] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc)
  • Version [version number]
  • Not sure

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: Firefox
  • Version: 99.0.1
Originally created by @ghost on GitHub (Apr 15, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/723 **Describe the bug** A clear and concise description of what the bug is. Introduction of [Support proxying results through Whoogle (aka "anonymous view")](https://github.com/benbusby/whoogle-search/commit/9317d9217f6d2ac39938ee402b9330f54f2f87dd) throws a KeyError in results.py: ``` File "/home/glitsj16/whoogle-search/app/utils/results.py", line 212, in append_anon_view av_link.string = f'{translation["anon-view"]}' KeyError: 'anon-view' ``` **To Reproduce** Steps to reproduce the behavior: 1. Build from git main 2. Set 'WHOOGLE_CONFIG_ANON_VIEW=1' 3. Run a search 4. See error **Deployment Method** - [ ] Heroku (one-click deploy) - [ ] Docker - [ x] `run` executable - [ ] pip/pipx - [ ] Other: [describe setup] **Version of Whoogle Search** - [ x] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc) - [ ] Version [version number] - [ ] Not sure **Desktop (please complete the following information):** - OS: Arch Linux - Browser: Firefox - Version: 99.0.1
kerem 2026-02-25 20:35:49 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#462
No description provided.