if this is always fatal (it looks like it is) you could move the sys.exit(1) into here and change the name to handle_role_error