Bugfix: non-existent manifest not handled gracefully #639
This commit is contained in:
		
					parent
					
						
							
								2b5f1a0148
							
						
					
				
			
			
				commit
				
					
						3fb7e33305
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -97,7 +97,7 @@ class CdistEntityError(Error):
 | 
				
			||||||
    def stderr(self):
 | 
					    def stderr(self):
 | 
				
			||||||
        output = []
 | 
					        output = []
 | 
				
			||||||
        for stderr_name, stderr_path in self.stderr_paths:
 | 
					        for stderr_name, stderr_path in self.stderr_paths:
 | 
				
			||||||
            if os.path.getsize(stderr_path) > 0:
 | 
					            if os.path.exists(stderr_path) and os.path.getsize(stderr_path) > 0:
 | 
				
			||||||
                label_begin = '---- BEGIN ' + stderr_name + ':stderr ----'
 | 
					                label_begin = '---- BEGIN ' + stderr_name + ':stderr ----'
 | 
				
			||||||
                label_end = '---- END ' + stderr_name + ':stderr ----'
 | 
					                label_end = '---- END ' + stderr_name + ':stderr ----'
 | 
				
			||||||
                output.append('\n' + label_begin)
 | 
					                output.append('\n' + label_begin)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue