How to remove Internal Server Error when running the page in Flask?

Hello. Error 500 Internal Server Error when navigating to the page /search4. Like, the module is created and imported according to the instructions from the book, and the error is still there.

from flask import Flask
from vsearch import search4letters

app = Flask(__name__)

@app.route('/')
def hello() -> str:
 return 'Hello world from Flask!'
@app.route('/search4')
def do_search() -> str:
 return str(search4letters('life, the universe, and everything', 'eiru,!'))

app.run()
April 4th 20 at 00:47
1 answer
April 4th 20 at 00:49
Solution
logs

str(search4letters('life, the universe, and everything', 'eiru,!'))
then check what is returned

Find more questions by tags Flask