Use assert function instead of execute

Judging by parameters, appears to have been a merge mistake.
An assert should have been used instead of the execute.