Skip to content

Commit 473045a

Browse files
authored
Merge pull request #6255 from roed314/knowl_lock
Fix bug in knowl is_locked
2 parents 52ace04 + 3fbe7c5 commit 473045a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lmfdb/knowledge/knowl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def is_locked(self, knowlid, delta_min=10):
738738
tdelta = timedelta(minutes=delta_min)
739739
time = now - tdelta
740740
selecter = SQL("SELECT username, timestamp FROM kwl_locks WHERE id = %s AND timestamp >= %s LIMIT 1")
741-
L = self._execute(selecter, (knowlid, time))
741+
L = self._safe_execute(selecter, (knowlid, time))
742742
if L:
743743
return dict(zip(["username", "timestamp"], L[0]))
744744

0 commit comments

Comments
 (0)