From 9b2df9cfd9d8468c749abfaf3cb8944423793e3e Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Wed, 27 May 2020 18:38:50 +0200 Subject: [PATCH] Fix #1441 (list copy function not available on python2, crashes edit metadata) --- cps/editbooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/editbooks.py b/cps/editbooks.py index e848c8e2..abef41ce 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -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())