equal to None error resolved

It was some error that I should have seen it coming. I guess I forgot to test it. My bad. This won't happen again.

Signed-off-by: jayrambhia <jayrambhia777@gmail.com>