def label ( self, chanid, chanstr ):
    """ Write the channel label/string associated with the channel identifier"""

    sql = 'INSERT INTO channels VALUES ( \'{}\', {} )'.format( chanstr, chanid )
    try:
      print sql
      #self.cursor.execute ( sql )
    except MySQLdb.Error, e:
      print ((e.args[0], e.args[1], sql) % "Error updating channels table: %d: %s. sql=%s")
      raise
dataset/ETHPy150Open neurodata/ndstore/ingest/mitra/mitrachannel.py/MitraIngest.label/swapped operands of `%`