mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[GH-ISSUE #782] [500 error] <some searches cause a 500 error> #494
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#494
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @blackletum on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/782
Describe the bug
Bug persists when searching certain words, with seemingly no pattern to it.
To Reproduce
Steps to reproduce the behavior:
I've noticed some things cause issues but others do not? 'bitcoin' causes the issue but 'facebook' does not, for instance.
Deployment Method
runexecutableVersion of Whoogle Search
Desktop (please complete the following information):
Additional context
Error log:
ERROR:app:Exception on /search [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise
raise value
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 94, in decorated
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 53, in decorated
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 361, in search
conversion = check_currency(str(response))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/utils/results.py", line 268, in check_currency
while 'class' not in currency_link.attrs or
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'attrs'