From 0f9ebc2f257b1eec079da4e3663b22cc584e403f Mon Sep 17 00:00:00 2001 From: Jari Voutilainen Date: Thu, 25 Jan 2024 10:28:07 +0200 Subject: [PATCH] Fix input when file already is UTF-8 --- datapusher/jobs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datapusher/jobs.py b/datapusher/jobs.py index a333855..4d0772c 100644 --- a/datapusher/jobs.py +++ b/datapusher/jobs.py @@ -707,6 +707,8 @@ def _push_to_datastore(task_id, input, dry_run=False, temp_dir=None): "Job aborted as the file cannot be re-encoded to UTF-8: {}.".format(e) ) return + else: + qsv_input_utf_8_encoded_csv = tmp try: subprocess.run( [