might be possible? idk

This commit is contained in:
based
2024-02-17 22:09:37 +10:00
parent 02ef6a0b13
commit fddb8a4bcc
+2 -1
View File
@@ -119,7 +119,8 @@ def get_key_policies(iam_client, key: APIKey):
break
return policies
except botocore.exceptions.ClientError:
key.useless = True
if not key.bedrock_enabled:
key.useless = True
key.useless_reasons.append('Failed Policy Fetch')
return