Report error exceptions

svn: r1275
This commit is contained in:
Don Allingham
2003-01-29 04:43:12 +00:00
parent 16fa3b0b8f
commit 71ee24226d
16 changed files with 103 additions and 56 deletions

View File

@@ -790,11 +790,9 @@ class StyleSheetList:
Loads the StyleSheets from the associated file, if it exists.
"""
try:
parser = make_parser()
parser.setContentHandler(SheetParser(self))
if self.file[0:7] != "file://":
self.file = "file://" + self.file
parser.parse(self.file)
p = make_parser()
p.setContentHandler(SheetParser(self))
p.parse('file://' + self.file)
except (IOError,OSError,SAXParseException):
pass