Skip to content

The ARN class doesn't handle invalid ARNs properly #335

Closed
@kmcquade

Description

@kmcquade
  File "/home/nick/.local/lib/python3.9/site-packages/policy_sentry/util/arns.py", line 178, in get_service_from_arn
    result = parse_arn(arn)
  File "/home/nick/.local/lib/python3.9/site-packages/policy_sentry/util/arns.py", line 162, in parse_arn
    "partition": elements[1],
IndexError: list index out of range

Need to handle IndexError. PR coming shortly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions