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

Comparing COMP/CRAB/python/ServerCommunicator.py (file contents):
Revision 1.57 by spiga, Wed Jan 20 13:21:02 2010 UTC vs.
Revision 1.58 by farinafa, Tue Jan 26 12:54:21 2010 UTC

# Line 201 | Line 201 | class ServerCommunicator:
201          # get the data and fill the file content
202          statusMsg = self.asSession.getTaskStatus(statusFamilyType, blTaskName)
203          if 'Error:' in  statusMsg[:6] or len(statusMsg)==0:
204 <             raise CrabException('Error occurred while retrieving task %s status from server %s'%(self.crab_task_name, self.serverName) )
205 <             return
204 >             if statusFamilyType != 'isServerDrained':
205 >                 raise CrabException('Error in retrieving task %s status from server %s'%(self.crab_task_name, self.serverName) )
206 >             else:
207 >                 statusFile = None
208 >                 statusMMsg = ""
209  
210          if statusFile is not None:
211              f = open(statusFile, 'w')

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines