fix: movie title is none hot fix
@@ -764,6 +764,7 @@ def check_answer_to_do_you_know_question_response(vars):
##################################################################################################################
def collect_and_save_facts_about_location(movie_id, vars):
+ if movie_id:
shared_memory = state_utils.get_shared_memory(vars)
movie_title = templates.imdb(movie_id)["title"]
@@ -793,6 +794,8 @@ def collect_and_save_facts_about_location(movie_id, vars):
if len(facts_about_movies):
state_utils.save_to_shared_memory(
vars, facts_about_movies={"movie_title": movie_title, "facts": sorted(facts_about_movies)})
+ else:
+ facts_about_movies = []
return facts_about_movies
