Use the right URLError attribute names for error messages
authorDiane Trout <diane@caltech.edu>
Tue, 23 Dec 2008 02:05:35 +0000 (02:05 +0000)
committerDiane Trout <diane@caltech.edu>
Tue, 23 Dec 2008 02:05:35 +0000 (02:05 +0000)
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: