Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

rollback on dummy database now has no effect (previously raised an er…

…ror). This means that custom 500 error pages (and e-mailed exceptions) now work even if a database has not been configured. Fixes #4429.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4cda993213fce2b4567ba31f2dc6a116445ce664 1 parent ea07351
authored June 01, 2007

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/db/backends/dummy/base.py
5  django/db/backends/dummy/base.py
@@ -12,6 +12,9 @@
12 12
 def complain(*args, **kwargs):
13 13
     raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet."
14 14
 
  15
+def ignore(*args, **kwargs):
  16
+    pass
  17
+
15 18
 class DatabaseError(Exception):
16 19
     pass
17 20
 
@@ -21,7 +24,7 @@ class IntegrityError(DatabaseError):
21 24
 class DatabaseWrapper:
22 25
     cursor = complain
23 26
     _commit = complain
24  
-    _rollback = complain
  27
+    _rollback = ignore
25 28
 
26 29
     def __init__(self, **kwargs):
27 30
         pass

0 notes on commit 4cda993

Please sign in to comment.
Something went wrong with that request. Please try again.