def _set_ref_object(self, ref_object_class, **kwargs):
        if not kwargs in 'id':
            msg = "You have to provide an ID (Command: {c}).".format(c=self.command)
            logging.error(msg)
            raise CloseSpider(msg)
        try:
            self.ref_object = ref_object_class.objects.get(pk=kwargs['id'])
        except ObjectDoesNotExist:
            msg = "Object with ID {id} not found (Command: {c}).".format(
                id=kwargs['id'], c=self.command)
            logging.error(msg)
            raise CloseSpider(msg)
dataset/ETHPy150Open holgerd77/django-dynamic-scraper/dynamic_scraper/spiders/django_base_spider.py/DjangoBaseSpider._set_ref_object/swapped operands of `in`