mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #1884544: check library doesn't open if it has permission errors on author directories.
This commit is contained in:
parent
a0c70dd6d6
commit
74cf63c2f4
@ -108,6 +108,7 @@ class CheckLibrary(object):
|
|||||||
|
|
||||||
# Look for titles in the author directories
|
# Look for titles in the author directories
|
||||||
found_titles = False
|
found_titles = False
|
||||||
|
try:
|
||||||
for title_dir in os.listdir(auth_path):
|
for title_dir in os.listdir(auth_path):
|
||||||
if self.ignore_name(title_dir):
|
if self.ignore_name(title_dir):
|
||||||
continue
|
continue
|
||||||
@ -135,6 +136,10 @@ class CheckLibrary(object):
|
|||||||
# Record the book to check its formats
|
# Record the book to check its formats
|
||||||
self.book_dirs.append((db_path, title_dir, id_))
|
self.book_dirs.append((db_path, title_dir, id_))
|
||||||
found_titles = True
|
found_titles = True
|
||||||
|
except:
|
||||||
|
traceback.print_exc()
|
||||||
|
# Sort-of check: exception processing directory
|
||||||
|
self.failed_folders.append((auth_dir, traceback.format_exc(), []))
|
||||||
|
|
||||||
# Fourth check: author directories that contain no titles
|
# Fourth check: author directories that contain no titles
|
||||||
if not found_titles:
|
if not found_titles:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user