mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
ignore sqlalchemy 0.5 deprecation warnings for now
This commit is contained in:
parent
ded420dd9e
commit
2a0f22348d
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@ from sqlalchemy.sql import select, text, and_
|
||||||
from sqlalchemy.exceptions import DBAPIError, OperationalError
|
from sqlalchemy.exceptions import DBAPIError, OperationalError
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
|
|
||||||
|
# some users are still on 0.4.x..
|
||||||
|
import warnings
|
||||||
|
warnings.filterwarnings('ignore', 'Use session.add()')
|
||||||
|
warnings.filterwarnings('ignore', 'Use session.expunge_all()')
|
||||||
|
|
||||||
# sqlalchemy didn't handle the move to unicodetext nicely
|
# sqlalchemy didn't handle the move to unicodetext nicely
|
||||||
try:
|
try:
|
||||||
from sqlalchemy import UnicodeText
|
from sqlalchemy import UnicodeText
|
||||||
|
|
Loading…
Reference in a new issue