Skip to content

Commit 931caf7

Browse files
authored
Merge pull request #163 from linuxdaemon/gonzobot+fix-db-lock-errors
Fix DB lock issues
2 parents be1990b + 3c92dcb commit 931caf7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/duckhunt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from time import time
55

66
from sqlalchemy import Table, Column, String, Integer, PrimaryKeyConstraint, desc, Boolean
7-
from sqlalchemy.exc import DatabaseError
87
from sqlalchemy.sql import select
98

109
from cloudbot import hook
@@ -108,7 +107,7 @@ def save_status(db):
108107
if not res.rowcount:
109108
db.execute(status_table.insert().values(network=network, chan=chan, active=active, duck_kick=duck_kick))
110109

111-
db.commit()
110+
db.commit()
112111

113112

114113
@hook.event([EventType.message, EventType.action], singlethread=True)

0 commit comments

Comments
 (0)