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.
2 parents 25f9f91 + ba82597 commit db92a1dCopy full SHA for db92a1d
suds/xsd/schema.py
@@ -305,10 +305,11 @@ def open_imports(self, options):
305
@type options: L{options.Options}
306
"""
307
for imp in self.imports:
308
- self.__already_imported.setdefault(imp.location, 0)
309
- if self.__already_imported[imp.location] > 1:
310
- continue
311
- self.__already_imported[imp.location] += 1
+ if imp.location:
+ self.__already_imported.setdefault(imp.location, 0)
+ if self.__already_imported[imp.location] > 1:
+ continue
312
+ self.__already_imported[imp.location] += 1
313
314
imported = imp.open(options)
315
if imported is None:
0 commit comments