We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b18a7cd commit b5c0f80Copy full SHA for b5c0f80
remove_vpc.py
@@ -61,10 +61,7 @@ def delete_acls(ec2, args):
61
Delete the network access lists (NACLs)
62
"""
63
64
- try:
65
- acls = ec2.describe_network_acls(**args)["NetworkAcls"]
66
- except ClientError as e:
67
- print(e.response["Error"]["Message"])
+ acls = ec2.describe_network_acls(**args)["NetworkAcls"]
68
69
for acl in acls:
70
is_default = acl["IsDefault"]
@@ -79,10 +76,7 @@ def delete_sgps(ec2, args):
79
76
Delete any security groups
80
77
81
78
82
83
- sgps = ec2.describe_security_groups(**args)["SecurityGroups"]
84
85
+ sgps = ec2.describe_security_groups(**args)["SecurityGroups"]
86
87
if sgps:
88
for sgp in sgps:
0 commit comments