mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +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)
|
||||
fd = file(filename)
|
||||
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
|
||||
cursor.execute("""CREATE TABLE %s (key TEXT, value TEXT)""" % name)
|
||||
sql = """INSERT INTO %s VALUES (%%s, %%s)""" % name
|
||||
|
Loading…
Reference in New Issue
Block a user