X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fdb.py;h=f65569cb6e37183922b4dc6ae4e88a51e5bfec00;hb=7eab2ab93e2bdc2897dd5f41b474abd64bd8df01;hp=b3ddd5211961196f282c411cfffe79acf9edada7;hpb=d6ef04787834ffeded257d96af4c965ca7055a51;p=m_librarian.git diff --git a/m_librarian/db.py b/m_librarian/db.py index b3ddd52..f65569c 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -146,7 +146,9 @@ def open_db(db_uri=None): if connection.dbName == 'sqlite': def lower(s): - return s.lower() + if isinstance(s, basestring): + return s.lower() + return s sqlite = connection.module