mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Display more explicit error if python-sqlite3 is not installed.
This commit is contained in:
parent
5ebbf2d516
commit
4d1a7ea32a
@ -96,7 +96,12 @@ from supybot import commands
|
||||
try:
|
||||
import sqlite3
|
||||
except ImportError:
|
||||
from pysqlite2 import dbapi2 as sqlite3 # for python2.4
|
||||
raise ImportError('Cannot find sqlite3 module. If you are seeing this '
|
||||
'message, it means you are running a non-standard Python '
|
||||
'distribution that has not been compiled with sqlite3 support. '
|
||||
'Please recompile it with sqlite3 support or report a bug to '
|
||||
'the maintainer of the python package of your distribution.')
|
||||
|
||||
|
||||
class NoSuitableDatabase(Exception):
|
||||
def __init__(self, suitable):
|
||||
|
Loading…
Reference in New Issue
Block a user