author | Sverre Rabbelier <srabbelier@gmail.com> |
Wed, 11 Mar 2009 21:30:28 +0000 | |
changeset 1799 | 53d15b129a3b |
parent 1798 | ba4c00bc0c39 |
child 1800 | 32f5379c4242 |
--- a/app/soc/models/seed_db.py Wed Mar 11 21:29:58 2009 +0000 +++ b/app/soc/models/seed_db.py Wed Mar 11 21:30:28 2009 +0000 @@ -413,8 +413,11 @@ Document.all(), ]) - for entity in entities: - entity.delete() + try: + for entity in entities: + entity.delete() + except db.Timeout: + return http.HttpResponseRedirect('#') memcache.flush_all()