mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Better error messages when we can't load PySQLite.
This commit is contained in:
parent
eb970c09d7
commit
7b46f95f19
@ -52,7 +52,7 @@ class SqliteKarmaDB(object):
|
|||||||
import sqlite
|
import sqlite
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise callbacks.Error, 'You need to have PySQLite installed to ' \
|
raise callbacks.Error, 'You need to have PySQLite installed to ' \
|
||||||
'use this plugin. Download it at ' \
|
'use Karma. Download it at ' \
|
||||||
'<http://pysqlite.sf.net/>'
|
'<http://pysqlite.sf.net/>'
|
||||||
filename = plugins.makeChannelFilename(self.filename, channel)
|
filename = plugins.makeChannelFilename(self.filename, channel)
|
||||||
if filename in self.dbs:
|
if filename in self.dbs:
|
||||||
|
@ -70,7 +70,7 @@ class SqliteQuoteGrabsDB(object):
|
|||||||
import sqlite
|
import sqlite
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise callbacks.Error, 'You need to have PySQLite installed to ' \
|
raise callbacks.Error, 'You need to have PySQLite installed to ' \
|
||||||
'use this plugin. Download it at ' \
|
'use QuoteGrabs. Download it at ' \
|
||||||
'<http://pysqlite.sf.net/>'
|
'<http://pysqlite.sf.net/>'
|
||||||
filename = plugins.makeChannelFilename(self.filename, channel)
|
filename = plugins.makeChannelFilename(self.filename, channel)
|
||||||
def p(s1, s2):
|
def p(s1, s2):
|
||||||
|
Loading…
Reference in New Issue
Block a user