[JENKINS] - UnboundLocalError: local variable 'err' referenced before...