strange error (for me)

hello, i´m here again with a new question:
when i put
model.reparentTo(render)
and model is not the panda or the enviroment that the program includes, whhen i run the game, this show my an error:
AtributeError:´NoneType´, objet has no atribute ´reparentTo´
i think it´s a silly question

thanks!

im sorry for the question. i have the solution.