aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-08-10 09:42:35 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-08-10 10:04:35 +0200
commite41092a9392ef76967e2c45f5c015cb6e5353b64 (patch)
treed26410a003c3ab401bad586724fb3617ad33ab31
parentff22ae3a871f295b31dbf0cc1368216a790b37cf (diff)
downloadPROJ-e41092a9392ef76967e2c45f5c015cb6e5353b64.tar.gz
PROJ-e41092a9392ef76967e2c45f5c015cb6e5353b64.zip
build_db.py: improve error reporting [ci skip]
-rwxr-xr-xscripts/build_db.py8
1 files changed, 6 insertions, 2 deletions
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