From 11df1294222edd71d13f5c7df2d4bda9297aef7b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 14 Feb 2002 02:34:52 +0000 Subject: [PATCH] Catch OSError in addition to IOError on attempting to load the xml file svn: r772 --- gramps/src/TextDoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/src/TextDoc.py b/gramps/src/TextDoc.py index 22af3d7bd..bc4462335 100644 --- a/gramps/src/TextDoc.py +++ b/gramps/src/TextDoc.py @@ -479,8 +479,8 @@ class StyleSheetList: parser.parse(self.file) except IOError: pass -# except: -# print "could not parse file" + except OSError: + pass #------------------------------------------------------------------------ #