def get_mapping(self, cls, no_mapping_ok=False):
        db = None

        for candidate_cls in getmro(cls):
            db = self.mapping.get(candidate_cls, None)
            if db is not None:
                break

        if db is None:
            db = self.default_database

        if db is None:
            if no_mapping_ok:
                return None
            raise ValueError(repr(cls) % "There is no database mapping for %s")

        return db
dataset/ETHPy150Open memphis-iis/GLUDB/gludb/config.py/_DatabaseMapping.get_mapping/swapped operands of `%`