def _create_object_from_params(self, lookup, params):
        try:
            with transaction.atomic(using=self.db):
                obj = self.create(**params)
            return obj, True
        except IntegrityError:
            exc_info = sys.exc_info()
            try:
                return self.get(**lookup), False
            except self.model.DoesNotExist:
                pass
            six.reraise(*exc_info)
Initializer for AutoScalingModule.
dataset/ETHPy150Open django/django/django/db/models/query.py/QuerySet._create_object_from_params--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/module.py/AutoScalingModule.__init__