mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
I canno' do it capt'n. My irc.error doesn't have a msg
This commit is contained in:
parent
a0b0999762
commit
53b9a47e92
@ -132,7 +132,7 @@ class Lookup(callbacks.Privmsg):
|
|||||||
filename = os.path.join(conf.dataDir, filename)
|
filename = os.path.join(conf.dataDir, filename)
|
||||||
fd = file(filename)
|
fd = file(filename)
|
||||||
except EnvironmentError, e:
|
except EnvironmentError, e:
|
||||||
irc.error('Could not open %s: %s' % (filename, e))
|
irc.error(msg, 'Could not open %s: %s' % (filename, e.args[1]))
|
||||||
return
|
return
|
||||||
cursor.execute("""CREATE TABLE %s (key TEXT, value TEXT)""" % name)
|
cursor.execute("""CREATE TABLE %s (key TEXT, value TEXT)""" % name)
|
||||||
sql = """INSERT INTO %s VALUES (%%s, %%s)""" % name
|
sql = """INSERT INTO %s VALUES (%%s, %%s)""" % name
|
||||||
|
Loading…
Reference in New Issue
Block a user