From 1bd37659cfd6cf6c4a0fd3074362829c050a78cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Apr 2014 15:37:20 +0300 Subject: testxml: Fix crash with broken soft link in directory. --- testxml/testxml.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testxml/testxml.py b/testxml/testxml.py index 7066b51..8ce33be 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -147,7 +147,12 @@ def showFooter(): def enumDirs(parentDir): global warnings, errors - files = os.listdir(parentDir) + try: + files = os.listdir(parentDir) + except OSError: + print "Directory error: " + parentDir + warnings = warnings + 1 + return for file1 in files: if file1[0] == ".": continue -- cgit v1.2.3-70-g09d2