Move a few variables around

This should prevent a couple of crashes
due to undeclared variables.
This commit is contained in:
jvoisin
2020-04-27 12:03:54 +02:00
parent dc46ad16ae
commit 487878819e
3 changed files with 4 additions and 4 deletions

View File

@@ -37,9 +37,9 @@ except ImportError as e:
def extractCover(tmp_file_name, original_file_extension):
cover_data = extension = None
if use_comic_meta:
archive = ComicArchive(tmp_file_name)
cover_data = None
for index, name in enumerate(archive.getPageNameList()):
ext = os.path.splitext(name)
if len(ext) > 1: