Skip to content

Commit db92a1d

Browse files
committed
Merge pull request cackharot#13 from andreif/master
Check location in circular-importing fix
2 parents 25f9f91 + ba82597 commit db92a1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

suds/xsd/schema.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,11 @@ def open_imports(self, options):
305305
@type options: L{options.Options}
306306
"""
307307
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
308+
if imp.location:
309+
self.__already_imported.setdefault(imp.location, 0)
310+
if self.__already_imported[imp.location] > 1:
311+
continue
312+
self.__already_imported[imp.location] += 1
312313

313314
imported = imp.open(options)
314315
if imported is None:

0 commit comments

Comments
 (0)