From 50a18dcde6c5664cbbcc2b3b5585a4ec52964650 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 20 Dec 2015 23:31:00 +0300 Subject: [PATCH] Fix a bug in opening existing SQLite db --- m_librarian/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2