From: Oleg Broytman Date: Sun, 20 Dec 2015 20:31:00 +0000 (+0300) Subject: Fix a bug in opening existing SQLite db X-Git-Tag: 0.0.2^0 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=50a18dcde6c5664cbbcc2b3b5585a4ec52964650;p=m_librarian.git Fix a bug in opening existing SQLite db --- diff --git a/m_librarian/db.py b/m_librarian/db.py index e02b95b..d176e7b 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -32,7 +32,8 @@ if not db_uri: except OSError: # Perhaps already exists pass db_file = os.path.join(db_dir, 'm_librarian.sqlite') - db_uri = 'sqlite://%s' % db_file.replace(os.sep, '/') + + db_uri = 'sqlite://%s' % db_file.replace(os.sep, '/') sqlhub.processConnection = connectionForURI(db_uri)