mirror of
https://github.com/janeczku/calibre-web.git
synced 2024-11-26 08:51:05 +02:00
Merge branch 'ebookconvert-any' of https://github.com/bodybybuddha/calibre-web into ebookconvert-any
This commit is contained in:
commit
a5b188230c
@ -3186,7 +3186,10 @@ def edit_book(book_id):
|
||||
#Determine what formats don't already exist
|
||||
allowed_conversion_formats = ALLOWED_EXTENSIONS
|
||||
for file in book.data:
|
||||
allowed_conversion_formats.remove(file.format.lower())
|
||||
try:
|
||||
allowed_conversion_formats.remove(file.format.lower())
|
||||
except Exception:
|
||||
app.logger.warning(file.formate.lower() + ' already removed from list.')
|
||||
|
||||
app.logger.debug(allowed_conversion_formats)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user