mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Make exception syntax Python 3 compatible.
Translate all except and raise statements that are in the old form to the Python 3 compatible format.
This commit is contained in:
@@ -141,7 +141,7 @@ def make_instance(instance_name,
|
||||
# give instance a name
|
||||
try:
|
||||
new_instance.create_tags(Tags=[{'Key': 'Name', 'Value': instance_name}])
|
||||
except botocore.exceptions.ClientError, e:
|
||||
except botocore.exceptions.ClientError as e:
|
||||
if "InvalidInstanceID.NotFound" in str(e):
|
||||
# This seems to be ephemeral... retry
|
||||
time.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user