From dc4d527b0cda6e603ba2ce1ec53ee6d27f6724a4 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Mon, 25 Nov 2024 10:42:52 +1300 Subject: [PATCH] chore: Remove error class aliases They aren't really useful. --- scripts/files/fs_s3.py | 4 ++-- scripts/gdal/gdal_helper.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/files/fs_s3.py b/scripts/files/fs_s3.py index c3ac89227..89764eaec 100644 --- a/scripts/files/fs_s3.py +++ b/scripts/files/fs_s3.py @@ -95,8 +95,8 @@ def exists(path: str, needs_credentials: bool = False) -> bool: needs_credentials: if acces to object needs credentials. Defaults to False. Raises: - ce: s3_client.exceptions.ClientError - nsb: NoSuchBucket + s3_client.exceptions.ClientError + NoSuchBucket Returns: True if the S3 Object exists diff --git a/scripts/gdal/gdal_helper.py b/scripts/gdal/gdal_helper.py index baba1bf88..e6a9b165f 100644 --- a/scripts/gdal/gdal_helper.py +++ b/scripts/gdal/gdal_helper.py @@ -66,7 +66,7 @@ def run_gdal( output_file: the output file path Raises: - cpe: CalledProcessError is raised if something goes wrong during the execution of the command + CalledProcessError is raised if something goes wrong during the execution of the command Returns: subprocess.CompletedProcess: the output process.