mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Use 'except ... as' syntax in contrib/ and test/ too
This commit is contained in:
@@ -38,5 +38,5 @@ if __name__ == '__main__':
|
||||
gce.create_volume_snapshot(base_volume, name=prefix+'-snapshot')
|
||||
gce.create_volume(
|
||||
size=10, name=prefix+'-extra', location='us-central1-a')
|
||||
except KeyboardInterrupt, e:
|
||||
except KeyboardInterrupt as e:
|
||||
print "\nExiting on user command."
|
||||
|
||||
Reference in New Issue
Block a user