handle to ref conversions

svn: r6239
This commit is contained in:
Don Allingham
2006-03-31 04:19:06 +00:00
parent 97ee7bdc17
commit 6c0e2b86d6
19 changed files with 179 additions and 175 deletions

View File

@@ -893,9 +893,10 @@ class StyleSheetList:
Loads the StyleSheets from the associated file, if it exists.
"""
try:
p = make_parser()
p.setContentHandler(SheetParser(self))
p.parse(self.file)
if os.path.isfile(self.file):
p = make_parser()
p.setContentHandler(SheetParser(self))
p.parse(self.file)
except (IOError,OSError,SAXParseException):
pass