def get_moderator(self, model_class):
        try:
            moderator_instance = self._registered_models[model_class]
        except KeyError:
            msg = "%r has not been registered with Moderation." % model_class
            raise RegistrationError(msg)

        return moderator_instance
dataset/ETHPy150Open dominno/django-moderation/moderation/register.py/ModerationManager.get_moderator/original