Forgot a return after an irc.error.

This commit is contained in:
Jeremy Fincher 2003-09-18 15:45:43 +00:00
parent a02282c957
commit 287c9028a5

View File

@ -141,6 +141,7 @@ class Lookup(callbacks.Privmsg):
(key, value) = line.split(':', 1) (key, value) = line.split(':', 1)
except ValueError: except ValueError:
irc.error(msg, 'Invalid line in %s: %r' % (filename, line)) irc.error(msg, 'Invalid line in %s: %r' % (filename, line))
return
cursor.execute(sql, key, value) cursor.execute(sql, key, value)
cursor.execute("CREATE INDEX %s_keys ON %s (key)" % (name, name)) cursor.execute("CREATE INDEX %s_keys ON %s (key)" % (name, name))
db.commit() db.commit()