def __execute(self, conn_hash, sql):
        """Executes sql, Throws on error."""
        conn = self.__get_open_connection(conn_hash)
        conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
        cursor = conn.cursor()
        try:
            cursor.execute(sql)
        except Exception as e:
            logger.error(e  % "Executing sql: %s")
            raise
        finally:
            cursor.close()
            conn.close()
dataset/ETHPy150Open jzohrab/DbMigrator/dbMigrator/postgresdatabasehandler.py/PostgresDatabaseHandler.__execute/swapped operands of `%`