From 0dc86a49b4f9ad3b7eebdbf40c6b2f0469a7c16a Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Sat, 7 Oct 2023 11:05:57 -0700 Subject: [PATCH] Disable pylint deprecated option --- .pylintrc | 1 - src/cloudformation_cli_python_lib/identifier_utils.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index cb369db..51fb7a4 100644 --- a/.pylintrc +++ b/.pylintrc @@ -9,7 +9,6 @@ persistent=yes disable= missing-docstring, # not everything needs a docstring fixme, # work in progress - bad-continuation, # clashes with black too-few-public-methods, # triggers when inheriting ungrouped-imports, # clashes with isort duplicate-code, # broken, setup.py diff --git a/src/cloudformation_cli_python_lib/identifier_utils.py b/src/cloudformation_cli_python_lib/identifier_utils.py index faef688..262878a 100644 --- a/src/cloudformation_cli_python_lib/identifier_utils.py +++ b/src/cloudformation_cli_python_lib/identifier_utils.py @@ -20,6 +20,7 @@ def generate_resource_identifier( max_length: int, ) -> str: if max_length < MIN_PHYSICAL_RESOURCE_ID_LENGTH: + # pylint: disable=broad-exception-raised raise Exception( f"Cannot generate resource IDs shorter than\ {MIN_PHYSICAL_RESOURCE_ID_LENGTH} characters."