From e2ed331e5bce2a3ce3af882d8ecc276f2dedad23 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Wed, 9 May 2018 16:26:46 -0800 Subject: [PATCH] Try utf-16 if utf-8 fails --- exts/imports/process_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exts/imports/process_files.py b/exts/imports/process_files.py index 8b9edcc..154de53 100644 --- a/exts/imports/process_files.py +++ b/exts/imports/process_files.py @@ -78,6 +78,7 @@ def process_file(in_file, file_type, encoding) -> ConfigParser: config = rename_section(config, section, section.title()) else: config.remove_section(section) + print(config.sections()) return config @@ -124,7 +125,6 @@ def process_files(z) -> (ConfigParser, ConfigParser, list): except UnicodeDecodeError as e: print(e) return 0, 0, 0 - print([dino.sections() for key, dino in dino_data.values()]) rmtree('submissions_temp/tmp') if not mods: mods = check_for_modded_dinos(dino_data, mods)