I canno' do it capt'n. My irc.error doesn't have a msg

This commit is contained in:
James Vega 2003-12-02 05:49:10 +00:00
parent a0b0999762
commit 53b9a47e92

View File

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