Mercurial > repos > john-mccallum > pcr_markers
diff umelt_service.py @ 6:f201e8c6e004 draft default tip
Uploaded
author | ben-warren |
---|---|
date | Mon, 07 Jul 2014 19:28:17 -0400 |
parents | b321e0517be3 |
children |
line wrap: on
line diff
--- a/umelt_service.py Thu May 22 20:30:19 2014 -0400 +++ b/umelt_service.py Mon Jul 07 19:28:17 2014 -0400 @@ -22,11 +22,11 @@ try: response = urllib2.urlopen(req,timeout=timeout_sec) except urllib2.HTTPError, e: - print 'The server couldn\'t fulfill the request.' - print 'Error code: ', e.code + print >> sys.stderr, 'The server couldn\'t fulfill the request.' + print >> sys.stderr, 'Error code: ', e.code except urllib2.URLError, e: - print 'We failed to reach a server.' - print 'Reason: ', e.reason + print >> sys.stderr, 'We failed to reach a server.' + print >> sys.stderr, 'Reason: ', e.reason else: melt_data = response.read() tree = ET.fromstring(melt_data)