This is an automated notification sent by LCG Savannah. It relates to: support #103346, project CDS Invenio
============================================================================== LATEST MODIFICATIONS of support #103346: ============================================================================== Follow-up Comment #1, sr #103346 (project cdsware): /afs/cern.ch/user/c/cds/private/sls/SLSGenerateFiles/generateUpdateXMLFiles.py: added except AttributeError, msg: if errno contains "'NoneType' object has no attribute 'read'": url_dict[each_url]['value'] = 0 ============================================================================== OVERVIEW of support #103346: ============================================================================== URL: <http://savannah.cern.ch/support/?103346> Summary: SLS script failing in certain cases Project: CDS Invenio Submitted by: simko Submitted on: 2008-02-01 11:10 Category: None Priority: 5 - Normal Status: None Privacy: Private Assigned to: abchan Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ SLS sript fails in case of some problems with the sites being checked (e.g. Indico Search). $ python /afs/cern.ch/user/c/cds/private/sls/SLSGenerateFiles/generateUpdateXMLFiles.py Traceback (most recent call last): File "/afs/cern.ch/user/c/cds/private/sls/SLSGenerateFiles/generateUpdateXMLFiles.py", line 156, in ? result = testUrl(url_Indico_dict, outputFile="IndicoUpdateFile.xml",urlGroup="Indico") File "/afs/cern.ch/user/c/cds/private/sls/SLSGenerateFiles/generateUpdateXMLFiles.py", line 95, in testUrl sock = urllib.urlopen(each_url) File "/usr/lib64/python2.3/urllib.py", line 76, in urlopen return opener.open(url) File "/usr/lib64/python2.3/urllib.py", line 181, in open return getattr(self, name)(url) File "/usr/lib64/python2.3/urllib.py", line 306, in open_http return self.http_error(url, fp, errcode, errmsg, headers) File "/usr/lib64/python2.3/urllib.py", line 323, in http_error return self.http_error_default(url, fp, errcode, errmsg, headers) File "/usr/lib64/python2.3/urllib.py", line 551, in http_error_default return addinfourl(fp, headers, "http:" + url) File "/usr/lib64/python2.3/urllib.py", line 837, in __init__ addbase.__init__(self, fp) File "/usr/lib64/python2.3/urllib.py", line 787, in __init__ self.read = self.fp.read AttributeError: 'NoneType' object has no attribute 'read' _______________________________________________________ Follow-up Comments: ------------------------------------------------------- List-Post: project-invenio-devel@cern.ch Date: 2008-02-25 15:15 By: Belinda Chan <abchan> /afs/cern.ch/user/c/cds/private/sls/SLSGenerateFiles/generateUpdateXMLFiles.py: added except AttributeError, msg: if errno contains "'NoneType' object has no attribute 'read'": url_dict[each_url]['value'] = 0 _______________________________________________________ Carbon-Copy List: CC Address | Comment ------------------------------------+----------------------------- 386 | -COM- 1576 | -SUB- ============================================================================== This item URL is: <http://savannah.cern.ch/support/?103346> _______________________________________________ Message sent via/by LCG Savannah http://savannah.cern.ch/