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

Comparing COMP/CRAB/python/SubmitterServer.py (file contents):
Revision 1.65 by spiga, Mon Dec 8 17:53:08 2008 UTC vs.
Revision 1.66 by mcinquil, Mon Dec 8 20:48:05 2008 UTC

# Line 100 | Line 100 | class SubmitterServer( Submitter ):
100                  msg +='\t%s'%str(ex)
101                  common.logger.debug(1, msg)
102              except OperationException, ex:
103 <                common.logger.debug(1, str(ex))
104 <                msg = "ERROR : Unable to create project destination on the Storage Element \n"
103 >                common.logger.debug(1, str(ex.detail))
104 >                msg = "ERROR: Unable to create project destination on the Storage Element %s\n"%str(ex)
105 >                msg +="Project "+ self.taskuuid +" not Submitted \n"
106 >                raise CrabException(msg)
107 >            except AuthorizationException, ex:
108 >                common.logger.debug(1, str(ex.detail))
109 >                msg = "ERROR: Unable to create project destination on the Storage Element: %s\n"%str(ex)
110                  msg +="Project "+ self.taskuuid +" not Submitted \n"
111                  raise CrabException(msg)
112  
# Line 114 | Line 119 | class SubmitterServer( Submitter ):
119              common.logger.debug(1, "Sending "+ os.path.basename(filetocopy) +" to "+ self.storage_name)
120              try:
121                  sbi.copy( source, dest)
122 +            except AuthorizationException, ex:
123 +                common.logger.debug(1, str(ex.detail))
124 +                msg = "ERROR: Unable to create project destination on the Storage Element: %s\n"%str(ex)
125 +                msg +="Project "+ self.taskuuid +" not Submitted \n"
126 +                raise CrabException(msg)
127              except Exception, ex:
128                  common.logger.debug(1, str(ex))
129 <                msg = "ERROR : Unable to ship the project to the server \n"
129 >                msg = "ERROR : Unable to ship the project to the server %s\n"%str(ex)
130                  msg +="Project "+ self.taskuuid +" not Submitted \n"
131                  raise CrabException(msg)
132  
# Line 157 | Line 167 | class SubmitterServer( Submitter ):
167                      CredAPI.ManualRenewCredential()
168                  except Exception, ex:
169                      raise CrabException(str(ex))
170 +
171               try:
172                   dict = CredAPI.registerCredential('submit')
173               except Exception, err:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines