Improved handling of Issue #10

This commit is contained in:
Roberto Rosario
2011-08-08 23:38:36 -04:00
parent 84e12efb43
commit 08bc9ebf0e
3 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ except ImportError:
class OperationalError(Exception):
pass
from django.core.exceptions import ImproperlyConfigured
from django.db import transaction
from django.db.utils import DatabaseError
#from django.utils import simplejson
@@ -38,7 +39,7 @@ def register_history_type(history_type_dict):
except DatabaseError:
transaction.rollback()
# Special case for ./manage.py syncdb
except OperationalError:
except (OperationalError, ImproperlyConfigured):
transaction.rollback()
# Special for DjangoZoom, which executes collectstatic media
# doing syncdb and creating the database tables