Closed Rackme closed 3 years ago
Line of code in question: https://github.com/nccgroup/PMapper/blob/v1.1.0-dev/principalmapper/graphing/gathering.py#L378
I made the assumption that sqs:GetQueueAttributes
would always return a response with a Policy
field when I called it: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/services/sqs.html#SQS.Client.get_queue_attributes
You can hotfix by storing the response in a variable and doing something like if 'Policy' in var: ...
. I'll commit a fix this week.
Added a fix in e74636a . Would you be willing to test and verify the fix?
It's working like a charm, thanks !
Describe the bug I was not able to test the "v1.1.0-dev" version with an account with no SQS resources.
To Reproduce
I used :
The application crash with the following stack trace :