Removed IntegrityError exception check, not raise during syncdb
This commit is contained in:
@@ -30,8 +30,6 @@ def register_permission(permission):
|
|||||||
except DatabaseError:
|
except DatabaseError:
|
||||||
transaction.rollback()
|
transaction.rollback()
|
||||||
#Special case for ./manage.py syncdb
|
#Special case for ./manage.py syncdb
|
||||||
except IntegrityError:
|
|
||||||
transaction.rollback()
|
|
||||||
else:
|
else:
|
||||||
transaction.commit()
|
transaction.commit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user