Got a TypeError after update and need to adapt found solution

Got a TypeError after update and need to adapt found solution