aboutsummaryrefslogtreecommitdiffstats
path: root/import_source.py
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-08 16:16:53 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-08 16:16:53 +0200
commitcbef18171d6bf0d08cfbdec0b2c197a5c16b8c2d (patch)
treec9066201dbb05f279c34c83055cce4ad48f7979b /import_source.py
parent02653bdfa4aef349e223d615f044165dd1ea6077 (diff)
Add missing f-string in RuntimeError() argument.
Diffstat (limited to 'import_source.py')
-rw-r--r--import_source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/import_source.py b/import_source.py
index 16284b9..0431486 100644
--- a/import_source.py
+++ b/import_source.py
@@ -216,7 +216,7 @@ def createOutputLayer(ds : gdal.Dataset,
defn.SetUnique(v)
if lyr.CreateField(defn, approx_ok=False) != gdalconst.CE_None:
- raise RuntimeError('Could not create field "{fldName}"')
+ raise RuntimeError(f'Could not create field "{fldName}"')
logging.debug('Added field "%s" to output layer "%s"', fldName, layername)
# sync before calling StartTransaction() so we're not trying to rollback changes