mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ad36ac19c0
commit
78da380d11
@ -78,7 +78,6 @@ def create_file_copy(ctx, rd, prefix, library_id, book_id, ext, mtime, copy_func
|
|||||||
def safe_mtime():
|
def safe_mtime():
|
||||||
with suppress(OSError):
|
with suppress(OSError):
|
||||||
return os.path.getmtime(fname)
|
return os.path.getmtime(fname)
|
||||||
return 0
|
|
||||||
|
|
||||||
with lock:
|
with lock:
|
||||||
previous_mtime = safe_mtime()
|
previous_mtime = safe_mtime()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user