mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
pep8: Fix E722 do not use bare except'
This commit is contained in:
parent
503b15d75e
commit
6dac2abd7b
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ class PrintPublicIPAddress(Task):
|
|||
info._ec2['instance'] = conn.describe_instances(InstanceIds=[info._ec2['instance']['InstanceId']])['Reservations'][0]['Instances'][0]
|
||||
logger.info('******* EC2 IP ADDRESS: %s *******' % info._ec2['instance']['PublicIpAddress'])
|
||||
f.write(info._ec2['instance']['PublicIpAddress'])
|
||||
except:
|
||||
except Exception:
|
||||
logger.error('Could not get IP address for the instance')
|
||||
f.write('')
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Image(object):
|
|||
self.container.create()
|
||||
try:
|
||||
self.container.start()
|
||||
except:
|
||||
except Exception:
|
||||
self.container.destroy()
|
||||
raise
|
||||
return self.container
|
||||
|
|
Loading…
Add table
Reference in a new issue