Convert old style except blocks to except Exception as variable: blocks
[htsworkflow.git] / htsworkflow / pipelines / retrieve_config.py
index 7951752318aebe7d2443c010e64ac24149023167..1d442145ae07f0bd17ac694bd9fd472e45337c04 100644 (file)
@@ -49,7 +49,7 @@ def retrieve_flowcell_info(base_host_url, flowcell):
     try:
         apipayload = urllib.urlencode(apidata)
         web = urllib2.urlopen(url, apipayload)
-    except urllib2.URLError, e:
+    except urllib2.URLError as e:
         errmsg = 'URLError: %d %s' % (e.code, e.msg)
         LOGGER.error(errmsg)
         LOGGER.error('opened %s' % (url,))