mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
don't fail on old sqlalchemy
This commit is contained in:
parent
80fb6c5230
commit
97cf06b333
1 changed files with 7 additions and 6 deletions
|
|
@ -42,6 +42,7 @@ except ImportError:
|
||||||
|
|
||||||
# dump location of non-unicode string
|
# dump location of non-unicode string
|
||||||
from sqlalchemy import util
|
from sqlalchemy import util
|
||||||
|
if getattr(util, 'warn', None):
|
||||||
import traceback
|
import traceback
|
||||||
oldWarn = util.warn
|
oldWarn = util.warn
|
||||||
def newWarn(*args, **kwargs):
|
def newWarn(*args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue