ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DBSInfo_EDM.py
(Generate patch)

Comparing COMP/CRAB/python/DBSInfo_EDM.py (file contents):
Revision 1.7 by mkirn, Thu Aug 10 17:08:54 2006 UTC vs.
Revision 1.8 by mkirn, Thu Aug 10 19:46:07 2006 UTC

# Line 151 | Line 151 | class DBSInfo_EDM:
151          """ Query DBS to get files/fileblocks """
152          try:
153              FilesbyBlock={}
154 <            for fileBlock in self.api.getDatasetFileBlocks(path):
154 >            try:
155 >                allBlocks = self.api.getDatasetFileBlocks(path)
156 >            except dbsCgiApi.DbsCgiBadResponse, ex:
157 >                raise DBSError(ex.getClassName(), ex.getErrorMessage())
158 >            for fileBlock in allBlocks:
159                  blockname=fileBlock.get('blockName')
160                  filesinblock=[]
161                  for files in fileBlock.get('fileList'):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines