From cbef18171d6bf0d08cfbdec0b2c197a5c16b8c2d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 8 Jun 2025 16:16:53 +0200 Subject: Add missing f-string in RuntimeError() argument. --- import_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'import_source.py') 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 -- cgit v1.2.3