Skip to content

Commit 806b71f

Browse files
author
Joel Collins
committed
Show lock instance in LockError
1 parent 2ce0bf8 commit 806b71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labthings/core/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, code, lock):
1414
else:
1515
self.message = "Unknown error."
1616

17-
self.string = "{}: {}".format(self.code, self.message)
17+
self.string = f"{self.code}: LOCK {lock}: {self.message}"
1818
print(self.string)
1919

2020
ThreadError.__init__(self)

0 commit comments

Comments
 (0)