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 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=16d15b06f5b487a1c23ebf42c1b1c6b95a9052c8;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)