Catch OSError in addition to IOError on attempting to load the xml file
svn: r772
This commit is contained in:
parent
37bbe06d5a
commit
d8f41439ac
@ -479,8 +479,8 @@ class StyleSheetList:
|
|||||||
parser.parse(self.file)
|
parser.parse(self.file)
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
# except:
|
except OSError:
|
||||||
# print "could not parse file"
|
pass
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user