def addRole(self, role):
        self.log(3, role)
        self._checkValidName(role)
        cu = self.db.transaction()
        try:
            cu.execute("INSERT INTO UserGroups (userGroup) VALUES (?)", role)
            ugid = cu.lastrowid
        except sqlerrors.ColumnNotUnique:
            self.db.rollback()
            raise errors.RoleAlreadyExists, role % "role: %s"
        self._checkDuplicates(cu, role)
        self.db.commit()
        return ugid
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/netauth.py/NetworkAuthorization.addRole/swapped operands of `%`