summaryrefslogtreecommitdiff
path: root/cloudinit/boto_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/boto_utils.py')
-rw-r--r--cloudinit/boto_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/boto_utils.py b/cloudinit/boto_utils.py
index 5030e5fd..b38483fa 100644
--- a/cloudinit/boto_utils.py
+++ b/cloudinit/boto_utils.py
@@ -43,7 +43,7 @@ def retry_url(url, retry_on_404=True):
req = urllib2.Request(url)
resp = urllib2.urlopen(req)
return resp.read()
- except urllib2.HTTPError, e:
+ except urllib2.HTTPError as e:
# in 2.6 you use getcode(), in 2.5 and earlier you use code
if hasattr(e, 'getcode'):
code = e.getcode()