From b0ed0ded31cd048b45e7ab60e047f7a6fc804278 Mon Sep 17 00:00:00 2001 From: Taher Chegini Date: Wed, 15 May 2024 22:43:31 -0400 Subject: [PATCH] LNT: Run pre-commit. [skip ci] --- pygeoogc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoogc/utils.py b/pygeoogc/utils.py index a2e36b8..561f863 100644 --- a/pygeoogc/utils.py +++ b/pygeoogc/utils.py @@ -321,7 +321,7 @@ def _download( try: resp = session_func(url, **kwd) except ServiceError as ex: - msg = f"An error occured when downloading {url}:\n{str(ex)}" + msg = f"An error occured when downloading {url}:\n{ex!s}" warnings.warn(msg, RuntimeWarning, stacklevel=2) return None fsize = int(resp.headers.get("Content-Length", -1))