From c1cd141b29b91dc3d3a11d2216c2bb4768ccc2f4 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Fri, 1 Jul 2011 09:32:30 -0700 Subject: [PATCH] Only ignore ENOENT errors in teuthology-ls. --- teuthology/suite.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/teuthology/suite.py b/teuthology/suite.py index ba200a1a9ce2b..6256e532f8a1a 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -1,4 +1,5 @@ import argparse +import errno import itertools import logging import os @@ -141,7 +142,10 @@ def ls(): for new in g: summary.update(new) except IOError, e: - continue + if e.errno == errno.ENOENT: + continue + else: + raise for key in ['owner', 'description']: if not key in summary: -- 2.39.5