From e41092a9392ef76967e2c45f5c015cb6e5353b64 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 10 Aug 2021 09:42:35 +0200 Subject: build_db.py: improve error reporting [ci skip] --- scripts/build_db.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/build_db.py b/scripts/build_db.py index ec4b7397..772b2dad 100755 --- a/scripts/build_db.py +++ b/scripts/build_db.py @@ -650,8 +650,12 @@ def fill_grid_transformation(proj_db_cursor): ) #proj_db_cursor.execute("INSERT INTO coordinate_operation VALUES (?,?,'grid_transformation')", (EPSG_AUTHORITY, code)) - proj_db_cursor.execute('INSERT INTO grid_transformation VALUES (' + - '?,?,?, ?, ?,?,?, ?,?, ?,?, ?, ?,?,?,?, ?,?,?,?, ?,?, ?,?)', arg) + try: + proj_db_cursor.execute('INSERT INTO grid_transformation VALUES (' + + '?,?,?, ?, ?,?,?, ?,?, ?,?, ?, ?,?,?,?, ?,?,?,?, ?,?, ?,?)', arg) + except sqlite3.IntegrityError as e: + print(arg) + raise def fill_other_transformation(proj_db_cursor): # 9601: Longitude rotation -- cgit v1.2.3