Ticket #6338: patch.diff

File patch.diff, 704 bytes (added by simeon, 17 years ago)
  • django/db/backends/sqlite3/client.py

     
    11from django.conf import settings
     2from django.utils.translation import ugettext_lazy as _
    23import os
    34
    45def runshell():
    56    args = ['', settings.DATABASE_NAME]
    6     os.execvp('sqlite3', args)
     7    try:
     8        os.execvp('sqlite3', args)
     9    except OSError, er:
     10        if er.errno == 2: #file not found
     11            raise OSError, _("sqlite3 executable not found. Is it installed?")
     12        else:
     13            raise
     14    except:
     15        raise
     16
     17       
Back to Top