mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More helpful error message when the database is locked
This commit is contained in:
parent
9f7664f591
commit
202c7f2246
@ -55,7 +55,7 @@ def _lock(path):
|
||||
try:
|
||||
_lock_file = open(path, 'wb')
|
||||
except IOError:
|
||||
raise DatabaseLocked('Database in use by another instance', _lock_file.name)
|
||||
raise DatabaseLocked('Database in use by another instance', path)
|
||||
try:
|
||||
import fcntl, errno
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user