Skip to content

Commit

Permalink
Manual fixes for ruff check
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaily committed Dec 20, 2024
1 parent da56ed1 commit 12741f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awscli/customizations/ec2/addcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import logging

from botocore import model
from botocore.exceptions import ParamValidationError

from awscli.arguments import BaseCLIArgument

Expand Down Expand Up @@ -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)

0 comments on commit 12741f6

Please sign in to comment.