Use 'except ... as' syntax in contrib/ and test/ too

This commit is contained in:
Marius Gedminas 2015-08-27 21:58:51 +03:00
parent eb99aa8c68
commit 9ae66a7f5c
14 changed files with 25 additions and 25 deletions

View file

@ -175,5 +175,5 @@ if __name__ == '__main__':
filters = {"tag:Name":opts.match_re.replace('^',''), "instance-state-name": ['running', 'pending', 'stopped' ]}
delete_aws_instances(aws.get_all_instances(filters=filters), opts)
except KeyboardInterrupt, e:
except KeyboardInterrupt as e:
print "\nExiting on user command."