]> git.phdru.name Git - m_librarian.git/commitdiff
Fix a bug in opening existing SQLite db 0.0.2
authorOleg Broytman <phd@phdru.name>
Sun, 20 Dec 2015 20:31:00 +0000 (23:31 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 20 Dec 2015 20:31:00 +0000 (23:31 +0300)
m_librarian/db.py

index e02b95bcad56c13d033b52af576245877d3e9798..d176e7bc629fee4583ac325ea41743ea1fa4cef5 100755 (executable)
@@ -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)