Skip to content

Commit

Permalink
Fixed linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Singha22 committed Feb 6, 2025
1 parent 7730ebd commit 87eaa4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions moto/cloudhsmv2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,11 @@ def put_resource_policy(self, resource_arn: str, policy: str) -> Dict[str, str]:
ValueError: If the resource doesn't exist or is not in READY state
"""
# Extract backup ID from ARN
try:
backup_id = resource_arn.split("/")[-1]
except IndexError:
raise ValueError(f"Invalid resource ARN format: {resource_arn}")
# try:
# backup_id = resource_arn.split("/")[-1]
#
# except IndexError:
# raise ValueError(f"Invalid resource ARN format: {resource_arn}")

# Verify backup exists and is in READY state
# Note: Need to implement backup verification
Expand Down

0 comments on commit 87eaa4e

Please sign in to comment.