Fix #1441 (list copy function not available on python2, crashes edit metadata)

This commit is contained in:
Ozzieisaacs 2020-05-27 18:38:50 +02:00
parent 2f8c8c3a28
commit 9b2df9cfd9

View File

@ -278,7 +278,7 @@ def render_edit_book(book_id):
# Determine what formats don't already exist
if config.config_converterpath:
allowed_conversion_formats = constants.EXTENSIONS_CONVERT.copy()
allowed_conversion_formats = constants.EXTENSIONS_CONVERT[:]
for file in book.data:
if file.format.lower() in allowed_conversion_formats:
allowed_conversion_formats.remove(file.format.lower())