pysqlite error: Database locked?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tommy  B

    #1

    pysqlite error: Database locked?

    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\Li b\site-packages\supybo t\callbacks.py" , line 1170,
    in _call
    Command
    self.callComman d(command, irc, msg, *args, **kwargs)
    File "G:\Python24\Li b\site-packages\supybo t\utils\python. py", line
    62, in g
    f(self, *args, **kwargs)
    File "G:\Python24\Li b\site-packages\supybo t\callbacks.py" , line 1156,
    in callCommand
    method(irc, msg, *args, **kwargs)
    File "G:\Python24\Li b\site-packages\supybo t\commands.py", line 906,
    in newf
    f(self, irc, msg, args, *state.args, **state.kwargs)
    File "G:\Python24\Sc ripts\plugins\C asino\plugin.py ", line 160, in
    diceroll
    money_file_upda te(msg.nick, wager)
    File "G:\Python24\Sc ripts\plugins\C asino\plugin.py ", line 43, in
    money_file_upda te
    cur2.execute('U PDATE players SET cash = ' + str(newcash) + ' WHERE
    name = \' ' + user + '\'')
    OperationalErro r: database is locked
    ERROR 2006-06-06T22:20:34 Exception id: 0x486de ' + user + '\'')
    OperationalErro r: database is locked
    ERROR 2006-06-06T22:20:34 Exception id: 0x486de

    That's the error.

Working...