@classmethod
    def hook_error_creating_instance(self, exception, row):
        sys.stderr.write(
            "Error: The following row produces an error on instance creation:\n")
        sys.stderr.write("%s\n" % row)

        raise exception


    ###################
    # INTERNAL THINGS #
    ###################
Is called in case of an error on creating instances from the query
dataset/ETHPy150Open pboehm/django-data-migration/data_migration/migration.py/Migration.hook_error_creating_instance