From 2076b5b6c7bf7ca35eff187224df2fa09a18b862 Mon Sep 17 00:00:00 2001 From: Remi Cresson <remi.cresson@irstea.fr> Date: Sun, 24 Apr 2022 21:40:00 +0200 Subject: [PATCH] REFAC: use f string --- otbtf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otbtf/utils.py b/otbtf/utils.py index 5694772..729f771 100644 --- a/otbtf/utils.py +++ b/otbtf/utils.py @@ -34,7 +34,7 @@ def gdal_open(filename): """ gdal_ds = gdal.Open(filename) if not gdal_ds: - raise Exception("Unable to open file {}".format(filename)) + raise Exception(f"Unable to open file {filename}") return gdal_ds -- GitLab