Bugfix: non-existent manifest not handled gracefully #639

This commit is contained in:
Darko Poljak 2018-02-28 23:26:04 +01:00
parent 2b5f1a0148
commit 3fb7e33305
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class CdistEntityError(Error):
def stderr(self):
output = []
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_end = '---- END ' + stderr_name + ':stderr ----'
output.append('\n' + label_begin)