From 1577624c283ecd347b09c8dce726c4c1630c0822 Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 27 Oct 2008 01:01:42 +0100 Subject: [PATCH] [svn r8037] Commented out sqlite reference for use on other databases --- troggle/parsers/cavetab.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/troggle/parsers/cavetab.py b/troggle/parsers/cavetab.py index bd3d81b6b..55311ac6b 100644 --- a/troggle/parsers/cavetab.py +++ b/troggle/parsers/cavetab.py @@ -4,7 +4,7 @@ import settings import expo.models as models import csv import time -import sqlite3 +# import sqlite3 import re import os @@ -61,13 +61,13 @@ caveReader = csv.reader(cavetab) caveReader.next() # Strip out column headers -def save(x): #There seems to be an intermitent problem with sqlite and Vista, this should fix it - try: +def save(x): #There seems to be an intermitent problem with sqlite and Vista, uncomment the lines below, and the import sqlite3 statment above to fix it +# try: x.save() - except sqlite3.OperationalError: - print "Error" - time.sleep(1) - save(x) +# except sqlite3.OperationalError: +# print "Error" +# time.sleep(1) +# save(x) def html_to_wiki(text): if type(text) != str: