remove string exceptions for python2.6

This commit is contained in:
Damien Elmes 2010-06-10 13:24:46 +09:00
parent 880219567e
commit f03000d27b
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ except ImportError:
try: try:
from sqlite3 import dbapi2 as sqlite from sqlite3 import dbapi2 as sqlite
except: except:
raise "Please install pysqlite2 or python2.5" raise Exception("Please install pysqlite2 or python2.5")
from sqlalchemy import (Table, Integer, Float, Column, MetaData, from sqlalchemy import (Table, Integer, Float, Column, MetaData,
ForeignKey, Boolean, String, Date, ForeignKey, Boolean, String, Date,

View file

@ -37,7 +37,7 @@ from anki.lang import _
from hooks import runHook from hooks import runHook
if simplejson.__version__ < "1.7.3": if simplejson.__version__ < "1.7.3":
raise "SimpleJSON must be 1.7.3 or later." raise Exception("SimpleJSON must be 1.7.3 or later.")
CHUNK_SIZE = 32768 CHUNK_SIZE = 32768
MIME_BOUNDARY = "Anki-sync-boundary" MIME_BOUNDARY = "Anki-sync-boundary"