def store_tenant_domain(self, **fields):
        try:
            domain = get_tenant_domain_model().objects.create(**fields)
            domain.save()
            return domain
        except exceptions.ValidationError as e:
            self.stderr.write("Error: %s" % '; '.join(e.messages))
            return None
        except IntegrityError:
            return None
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/management/commands/clone_tenant.py/Command.store_tenant_domain/original