Use the right URLError attribute names for error messages
[htsworkflow.git] / htsworkflow / pipelines / retrieve_config.py
index 380c0de1015b66d52195b21d45106a3bbf0000ef..5c6ec571fb20808a86fdb6633c9f1a2f22610849 100644 (file)
@@ -148,10 +148,9 @@ def saveConfigFile(flowcell, base_host_url, output_filepath):
   try:
     web = urllib2.urlopen(url)
   except urllib2.URLError, e:
-    errmsg = 'URLError: %d' % (e.code,)
+    errmsg = 'URLError: %s' % (e.reason,)
     logging.error(errmsg)
     logging.error('opened %s' % (url,))
-    logging.error('%s' % ( e.read(),))
     raise IOError(errmsg)
 
   #except IOError, msg: