mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 06:02:59 +02:00
More helpful error message when the database is locked
This commit is contained in:
parent
9f7664f591
commit
202c7f2246
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue