Changeset 156

Show
Ignore:
Timestamp:
12/01/06 17:59:55 (2 years ago)
Author:
mk
Message:

Check if log file exist before trying to remove.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cheesecake/cheesecake_index.py

    r153 r156  
    13001300 
    13011301        if remove_log_file and not self.keep_log: 
    1302             os.unlink(os.path.join(self.sandbox, self.logfile)) 
     1302            log_path = os.path.join(self.sandbox, self.logfile) 
     1303            if os.path.exists(log_path): 
     1304                os.unlink(log_path) 
    13031305 
    13041306    def configure_logging(self, logfile=None):