URControl TypeError

When i run my script on a UR5 i get a URcontrol Type Error and have no idea what this is:

Someone an idea??

Thank you in advance

Ignore this question, it was a minor mistake from my side.
but UR error handling is strange

Could you share the code? Then we know what causes this.