      if sys.version_info < (2, 5, 0):
          module = 'pysqlite2'
      else:
          module = 'sqlite3'
      raise ImproperlyConfigured, "Error loading %s module: %s" % (module, e)
  
  try:
      import decimal
  except ImportError:
      from django.utils import _decimal as decimal # for Python 2.3
 
</s> remove     except ImportError:
 </s> add     except ImportError, e1: </s> remove except ImportError, e:
 </s> add except ImportError, exc:
        exc = e1
    raise ImproperlyConfigured, "Error loading %s module: %s" % (module, exc)
      if sys.version_info < (2, 5, 0):
          module = 'pysqlite2'
      else:
          module = 'sqlite3'
        exc = e1
    raise ImproperlyConfigured, "Error loading %s module: %s" % (module, exc)
  
  try:
      import decimal
  except ImportError:
      from django.utils import _decimal as decimal # for Python 2.3
keep keep keep keep replace keep keep keep keep keep
 Fixed #9113 -- Improved exception message reporting when importing sqlite3 fails.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9060 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/db/backends/sqlite3/base.py