def _ensure_valid_table(self, cursor, table_name):
        """
        Determines whether a table name represents a legal table in the
        current database, throwing an ``Error`` if not.

        :Parameters:
            cursor : Cursor
                an open ``Cursor``

            table_name : str
                the table name

        :raise Error: bad table name
        """
        if not self._is_valid_table(cursor, table_name):
            raise Error, table_name % 'No such table: "%s"'
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/db/base.py/DBDriver._ensure_valid_table/swapped operands of `%`