From: Diane Trout Date: Tue, 27 Oct 2015 18:16:20 +0000 (-0700) Subject: make exception dotted name python3 compliant X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=commitdiff_plain;h=a4f19a324b74a87065a69d8c26f62c544c386a08;hp=0ebdde76c9a3d2dd22e058c23339b0c16c17f140;p=htsworkflow.git make exception dotted name python3 compliant --- diff --git a/htsworkflow/pipelines/retrieve_config.py b/htsworkflow/pipelines/retrieve_config.py index a2153d0..de9b051 100644 --- a/htsworkflow/pipelines/retrieve_config.py +++ b/htsworkflow/pipelines/retrieve_config.py @@ -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,))