From 283879ca1dd5f5f421cb9479389a3933f74f5512 Mon Sep 17 00:00:00 2001 From: alexiglaser Date: Tue, 3 Dec 2024 16:29:34 +0000 Subject: [PATCH] Use pd.read_csv for border collection --- digital_land/package/datasetparquet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/digital_land/package/datasetparquet.py b/digital_land/package/datasetparquet.py index 76b091fa..19ac5200 100644 --- a/digital_land/package/datasetparquet.py +++ b/digital_land/package/datasetparquet.py @@ -85,7 +85,9 @@ def create_temp_table(self, input_paths): ) """ self.conn.execute(query) - except duckdb.Error as e: # Catch specific DuckDB error when running border collection + except ( + duckdb.Error + ) as e: # Catch specific DuckDB error when running border collection if "Value with unterminated quote" in str(e): dataframes = [] for file_path in input_paths_str: