Commit 9b2df9cf authored by Ozzieisaacs's avatar Ozzieisaacs

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

parent 2f8c8c3a
...@@ -278,7 +278,7 @@ def render_edit_book(book_id): ...@@ -278,7 +278,7 @@ def render_edit_book(book_id):
# Determine what formats don't already exist # Determine what formats don't already exist
if config.config_converterpath: if config.config_converterpath:
allowed_conversion_formats = constants.EXTENSIONS_CONVERT.copy() allowed_conversion_formats = constants.EXTENSIONS_CONVERT[:]
for file in book.data: for file in book.data:
if file.format.lower() in allowed_conversion_formats: if file.format.lower() in allowed_conversion_formats:
allowed_conversion_formats.remove(file.format.lower()) allowed_conversion_formats.remove(file.format.lower())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment