make exception dotted name python3 compliant
authorDiane Trout <diane@ghic.org>
Tue, 27 Oct 2015 18:16:20 +0000 (11:16 -0700)
committerDiane Trout <diane@ghic.org>
Tue, 27 Oct 2015 18:16:20 +0000 (11:16 -0700)
htsworkflow/pipelines/retrieve_config.py

index a2153d055230d9b35e94cf8f39e9aecc3b73a339..de9b051c9f6c9026e19957ec3093c37d5784b4f3 100644 (file)
@@ -46,7 +46,7 @@ def retrieve_flowcell_info(base_host_url, flowcell):
     try:
         apipayload = urllib.parse.urlencode(apidata)
         web = urllib.request.urlopen(url, apipayload)
-    except urllib.request.HTTPError as e:
+    except urllib.error.HTTPError as e:
         errmsg = 'URLError: %d %s' % (e.code, e.msg)
         LOGGER.error(errmsg)
         LOGGER.error('opened %s' % (url,))