sqlite was made mandatory: import error can fail at import time

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-06-06 15:18:29 +02:00
parent e8eb596fab
commit 19ac578a50
1 changed files with 4 additions and 8 deletions

View File

@ -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