mirror of
https://github.com/ankitects/anki.git
synced 2025-12-16 00:00:59 -05:00
remove string exceptions for python2.6
This commit is contained in:
parent
880219567e
commit
f03000d27b
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ except ImportError:
|
|||
try:
|
||||
from sqlite3 import dbapi2 as sqlite
|
||||
except:
|
||||
raise "Please install pysqlite2 or python2.5"
|
||||
raise Exception("Please install pysqlite2 or python2.5")
|
||||
|
||||
from sqlalchemy import (Table, Integer, Float, Column, MetaData,
|
||||
ForeignKey, Boolean, String, Date,
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ from anki.lang import _
|
|||
from hooks import runHook
|
||||
|
||||
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
|
||||
MIME_BOUNDARY = "Anki-sync-boundary"
|
||||
|
|
|
|||
Loading…
Reference in a new issue