#You just need to use try and except statements eg:
try:
rev=container_of_reviews.find_element(locator_of_element)
except:
#selenium driver cannot find the element so it will execute this block of code after
# the try block retrieve an error.eg use case:
rev=None