We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb61df7 commit 1d746aeCopy full SHA for 1d746ae
src/zeep/wsdl/wsdl.py
@@ -255,8 +255,14 @@ def parse_imports(self, doc):
255
for import_node in doc.findall("wsdl:import", namespaces=NSMAP):
256
namespace = import_node.get('namespace')
257
location = import_node.get('location')
258
- location = absolute_location(location, self.location)
259
+ if not location:
260
+ logger.debug(
261
+ "Skipping import for namespace %s (empty location)",
262
+ namespace)
263
+ continue
264
+
265
+ location = absolute_location(location, self.location)
266
key = (namespace, location)
267
if key in self.wsdl._definitions:
268
self.imports[key] = self.wsdl._definitions[key]
0 commit comments