From 34511494273f974275a539c83fb1dede65fb7076 Mon Sep 17 00:00:00 2001 From: Mike Croucher Date: Fri, 27 Feb 2015 15:54:31 +0000 Subject: [PATCH] Exception raising fix for Python 3 --- GPy/util/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/util/datasets.py b/GPy/util/datasets.py index 2648dd8d..8aced11a 100644 --- a/GPy/util/datasets.py +++ b/GPy/util/datasets.py @@ -113,7 +113,7 @@ def download_url(url, store_directory, save_name=None, messages=True, suffix='') os.makedirs(dir_name) try: response = urllib2.urlopen(url+suffix) - except urllib2.URLError, e: + except urllib2.URLError as e: if not hasattr(e, "code"): raise response = e