T
Tommy B
I'm currently working on a casino script for an IRC bot. I was going to
make a flat file database, but I decided to make it sqlite after some
suggestions. I'm using pysqlite.
http://pastebin.com/764315 < Source. The lines that have @@ (pastebin
doesn't like me) in front of them are important.
ERROR 2006-06-06T22:20:34 Uncaught exception in ['diceroll'].
Traceback (most recent call last):
File "G:\Python24\Lib\site-packages\supybot\callbacks.py", line 1170,
in _call
Command
self.callCommand(command, irc, msg, *args, **kwargs)
File "G:\Python24\Lib\site-packages\supybot\utils\python.py", line
62, in g
f(self, *args, **kwargs)
File "G:\Python24\Lib\site-packages\supybot\callbacks.py", line 1156,
in callCommand
method(irc, msg, *args, **kwargs)
File "G:\Python24\Lib\site-packages\supybot\commands.py", line 906,
in newf
f(self, irc, msg, args, *state.args, **state.kwargs)
File "G:\Python24\Scripts\plugins\Casino\plugin.py", line 160, in
diceroll
money_file_update(msg.nick, wager)
File "G:\Python24\Scripts\plugins\Casino\plugin.py", line 43, in
money_file_update
cur2.execute('UPDATE players SET cash = ' + str(newcash) + ' WHERE
name = \' ' + user + '\'')
OperationalError: database is locked
ERROR 2006-06-06T22:20:34 Exception id: 0x486de ' + user + '\'')
OperationalError: database is locked
ERROR 2006-06-06T22:20:34 Exception id: 0x486de
That's the error.
make a flat file database, but I decided to make it sqlite after some
suggestions. I'm using pysqlite.
http://pastebin.com/764315 < Source. The lines that have @@ (pastebin
doesn't like me) in front of them are important.
ERROR 2006-06-06T22:20:34 Uncaught exception in ['diceroll'].
Traceback (most recent call last):
File "G:\Python24\Lib\site-packages\supybot\callbacks.py", line 1170,
in _call
Command
self.callCommand(command, irc, msg, *args, **kwargs)
File "G:\Python24\Lib\site-packages\supybot\utils\python.py", line
62, in g
f(self, *args, **kwargs)
File "G:\Python24\Lib\site-packages\supybot\callbacks.py", line 1156,
in callCommand
method(irc, msg, *args, **kwargs)
File "G:\Python24\Lib\site-packages\supybot\commands.py", line 906,
in newf
f(self, irc, msg, args, *state.args, **state.kwargs)
File "G:\Python24\Scripts\plugins\Casino\plugin.py", line 160, in
diceroll
money_file_update(msg.nick, wager)
File "G:\Python24\Scripts\plugins\Casino\plugin.py", line 43, in
money_file_update
cur2.execute('UPDATE players SET cash = ' + str(newcash) + ' WHERE
name = \' ' + user + '\'')
OperationalError: database is locked
ERROR 2006-06-06T22:20:34 Exception id: 0x486de ' + user + '\'')
OperationalError: database is locked
ERROR 2006-06-06T22:20:34 Exception id: 0x486de
That's the error.