diff --git a/app/routes.py b/app/routes.py index bc8ee44..224905e 100644 --- a/app/routes.py +++ b/app/routes.py @@ -253,9 +253,10 @@ def search(): # Return 503 if temporarily blocked by captcha resp_code = 503 if has_captcha(str(response)) else 200 response = bold_search_terms(response, query) + # Feature to display IP address if search_util.check_kw_ip(): - html_soup = bsoup(response, "html.parser") + html_soup = bsoup(str(response), 'html.parser') response = add_ip_card(html_soup, request.remote_addr) return render_template(