May result in variable localroles accessed before assignment

AttributeError caught anway