def createAttribute (self, attr):
    try:
      return ConfigDB.getAttributeByName(attr.name)
    except UnknownAttributeName, e:
      self._log.info("Creating attribute: %s" % (attr.name))
      ConfigDB.createAttribute(attr)
      self._log.debug((attr.name, attr.id) % "Created attribute [%s] with ID %d")
      return attr
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/api/auth.py/AuthAPIv1.createAttribute/swapped operands of `%`