Ticket #6338: patch.diff
File patch.diff, 704 bytes (added by , 17 years ago) |
---|
-
django/db/backends/sqlite3/client.py
1 1 from django.conf import settings 2 from django.utils.translation import ugettext_lazy as _ 2 3 import os 3 4 4 5 def runshell(): 5 6 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