Changeset 625 for tea4cups

Show
Ignore:
Timestamp:
04/05/05 10:26:00 (20 years ago)
Author:
jerome
Message:

Ignore errors in posthooks

Location:
tea4cups/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/NEWS

    r615 r625  
    2222Tea4CUPS News : 
    2323    
     24  * 2.11 : 
     25   
     26    - Ignores errors in posthooks because the job was probably  
     27      successfully printed so no need to stop the print queue. 
     28      We log a warning instead in this case. 
     29       
    2430  * 2.10 :  
    2531   
  • tea4cups/trunk/tea4cups

    r624 r625  
    3737from struct import unpack 
    3838 
    39 version = "2.10_unofficial" 
     39version = "2.11_unofficial" 
    4040 
    4141class TeeError(Exception): 
     
    543543            status = self.runCommands(branchtype, branches, serialize) 
    544544            if status : 
    545                 exitcode = status 
     545                if branchtype != "posthook" : 
     546                    exitcode = status 
     547                else :     
     548                    # we just ignore error in posthooks 
     549                    self.logInfo("An error occured during the execution of posthooks.", "warn") 
    546550            if (branchtype == "prehook") and self.isCancelled : 
    547551                break # We don't want to execute tees or posthooks in this case