From 7df8bc39d9ecdeb42573593954878921728d7f1e Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Fri, 9 Apr 2021 08:19:18 +0200 Subject: [PATCH] fix: decode() the input files --- flaskr/controllers/main_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaskr/controllers/main_controller.py b/flaskr/controllers/main_controller.py index a411ca5..43e97ce 100644 --- a/flaskr/controllers/main_controller.py +++ b/flaskr/controllers/main_controller.py @@ -83,7 +83,7 @@ def gather_addresses(from_list, from_file): addresses = [] if from_file: file_mimetype = from_file.mimetype - file_contents = from_file.read() + file_contents = from_file.read().decode() rows_dicts = None -- libgit2 0.21.2