summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/antarus/projects/infra/use_desc_gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/antarus/projects/infra/use_desc_gen.py b/users/antarus/projects/infra/use_desc_gen.py
index 3204739b32..036b8c9e40 100644
--- a/users/antarus/projects/infra/use_desc_gen.py
+++ b/users/antarus/projects/infra/use_desc_gen.py
@@ -25,7 +25,7 @@ import re
import sys
from xml.dom import minidom
-from xml.parsers.expat import ExpatError
+from xml.parsers import expat
METADATA_XML = 'metadata.xml'
@@ -121,7 +121,7 @@ def GetLocalFlagInfoFromMetadataXml(metadata_file):
try:
dom_tree = minidom.parseString(metadata_file.read())
- except ExpatError, e:
+ except expat.ExpatError, e:
logging.error('%s (in file: %s)' % (e, metadata_file))
return d