diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-08-10 09:42:35 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-08-10 10:04:35 +0200 |
| commit | e41092a9392ef76967e2c45f5c015cb6e5353b64 (patch) | |
| tree | d26410a003c3ab401bad586724fb3617ad33ab31 /scripts/build_db.py | |
| parent | ff22ae3a871f295b31dbf0cc1368216a790b37cf (diff) | |
| download | PROJ-e41092a9392ef76967e2c45f5c015cb6e5353b64.tar.gz PROJ-e41092a9392ef76967e2c45f5c015cb6e5353b64.zip | |
build_db.py: improve error reporting [ci skip]
Diffstat (limited to 'scripts/build_db.py')
| -rwxr-xr-x | scripts/build_db.py | 8 |
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 |
