aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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