Skip to content

Commit

Permalink
replace finally with except (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
slink1993 authored and jawang35 committed Oct 10, 2019
1 parent a716d14 commit c3cfff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __launch_instance(self, index: int = 0):
def __enter__(self):
try:
return self.__launch_instance()
finally:
except:
self.__exit__(*sys.exc_info())

def __exit__(self, type, value, traceback):
Expand Down

0 comments on commit c3cfff0

Please sign in to comment.