From effe1d85a842d49b9279a082eecb0f6a428c90c2 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Tue, 7 Jun 2016 17:46:18 +0200 Subject: [PATCH] LocalStatusSQLite: remove dead code: sqlite import fails early Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/LocalStatusSQLite.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py index fbe7dde..762e432 100644 --- a/offlineimap/folder/LocalStatusSQLite.py +++ b/offlineimap/folder/LocalStatusSQLite.py @@ -65,11 +65,6 @@ class LocalStatusSQLiteFolder(BaseFolder): # Try to establish connection, no need for threadsafety in __init__. try: self.connection = sqlite.connect(self.filename, check_same_thread=False) - except NameError: - # sqlite import had failed. - six.reraise(UserWarning("SQLite backend chosen, but cannot connect " - "with available bindings to '%s'. Is the sqlite3 package " - "installed?."% self.filename), None, exc_info()[2]) except sqlite.OperationalError as e: # Operation had failed. six.reraise(UserWarning("cannot open database file '%s': %s.\nYou might "