|
@@ -665,7 +665,7 @@ class DOM: |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
result = self.loadDocument(file) |
|
|
result = self.loadDocument(file) |
|
|
except Exception, ex: |
|
|
|
|
|
|
|
|
except Exception as ex: |
|
|
file.close() |
|
|
file.close() |
|
|
raise ParseError(('Failed to load document %s' % url,) + ex.args) |
|
|
raise ParseError(('Failed to load document %s' % url,) + ex.args) |
|
|
else: |
|
|
else: |
|
|