We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33c097 commit e0acd90Copy full SHA for e0acd90
python/plugins/MetaSearch/util.py
@@ -81,17 +81,16 @@ def get_connections_from_file(parent, filename):
81
error = 0
82
try:
83
doc = etree.parse(filename).getroot()
84
+ if doc.tag != 'qgsCSWConnections':
85
+ error = 1
86
+ msg = parent.tr('Invalid CSW connections XML.')
87
except etree.ParseError, err:
88
error = 1
89
msg = parent.tr('Cannot parse XML file: %s' % err)
90
except IOError, err:
91
92
msg = parent.tr('Cannot open file: %s' % err)
93
- if doc.tag != 'qgsCSWConnections':
- error = 1
- msg = parent.tr('Invalid CSW connections XML.')
94
-
95
if error == 1:
96
QMessageBox.information(parent, parent.tr('Loading Connections'), msg)
97
return
0 commit comments