diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-06-08 16:16:53 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-06-08 16:16:53 +0200 |
commit | cbef18171d6bf0d08cfbdec0b2c197a5c16b8c2d (patch) | |
tree | c9066201dbb05f279c34c83055cce4ad48f7979b | |
parent | 02653bdfa4aef349e223d615f044165dd1ea6077 (diff) |
Add missing f-string in RuntimeError() argument.
-rw-r--r-- | import_source.py | 2 |
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 |