diff options
3 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/paster_templates/alchemy/+package+/models.py b/pyramid/paster_templates/alchemy/+package+/models.py index 1134cce07..9942f2bb0 100755 --- a/pyramid/paster_templates/alchemy/+package+/models.py +++ b/pyramid/paster_templates/alchemy/+package+/models.py @@ -80,7 +80,7 @@ def initialize_sql(engine): try: populate() except IntegrityError: - pass + DBSession.rollback() def appmaker(engine): initialize_sql(engine) diff --git a/pyramid/paster_templates/pylons_sqla/+package+/models.py b/pyramid/paster_templates/pylons_sqla/+package+/models.py index 6418f0c8b..181232072 100644 --- a/pyramid/paster_templates/pylons_sqla/+package+/models.py +++ b/pyramid/paster_templates/pylons_sqla/+package+/models.py @@ -43,4 +43,4 @@ def initialize_sql(engine): try: populate() except IntegrityError: - pass + DBSession.rollback() diff --git a/pyramid/paster_templates/routesalchemy/+package+/models.py b/pyramid/paster_templates/routesalchemy/+package+/models.py index 9da906752..e8755ba78 100644 --- a/pyramid/paster_templates/routesalchemy/+package+/models.py +++ b/pyramid/paster_templates/routesalchemy/+package+/models.py @@ -39,4 +39,4 @@ def initialize_sql(engine): try: populate() except IntegrityError: - pass + DBSession.rollback() |
