diff options
-rwxr-xr-x | testxml/testxml.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |