From 12741f623c7d679ca9fb2f7f84ed6ee176a648f4 Mon Sep 17 00:00:00 2001 From: Kenneth Daily Date: Fri, 20 Dec 2024 09:03:05 -0800 Subject: [PATCH] Manual fixes for ruff check --- awscli/customizations/ec2/addcount.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awscli/customizations/ec2/addcount.py b/awscli/customizations/ec2/addcount.py index bcd4d9a9aaca..3c147ab9775b 100644 --- a/awscli/customizations/ec2/addcount.py +++ b/awscli/customizations/ec2/addcount.py @@ -13,6 +13,7 @@ import logging from botocore import model +from botocore.exceptions import ParamValidationError from awscli.arguments import BaseCLIArgument @@ -90,6 +91,6 @@ def add_to_params(self, parameters, value): minstr, maxstr = (value, value) parameters["MinCount"] = int(minstr) parameters["MaxCount"] = int(maxstr) - except: + except Exception: msg = "count parameter should be of " "form min[:max] (e.g. 1 or 1:10)" raise ParamValidationError(msg)