From 19ac578a5010bffbd84b61d8d9dc7889f1cd3ce1 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Mon, 6 Jun 2016 15:18:29 +0200 Subject: [PATCH] sqlite was made mandatory: import error can fail at import time Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/LocalStatusSQLite.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py index b5e0f50..fbe7dde 100644 --- a/offlineimap/folder/LocalStatusSQLite.py +++ b/offlineimap/folder/LocalStatusSQLite.py @@ -1,5 +1,5 @@ # Local status cache virtual folder: SQLite backend -# Copyright (C) 2009-2011 Stewart Smith and contributors +# Copyright (C) 2009-2016 Stewart Smith and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,17 +14,13 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + import os +import six +import sqlite3 as sqlite from sys import exc_info from threading import Lock -import six - -try: - import sqlite3 as sqlite -except: - pass #fail only if needed later on, not on import - from .Base import BaseFolder