diff --git a/WSDLTools.py b/WSDLTools.py index 9b64146..a7b8403 100755 --- a/WSDLTools.py +++ b/WSDLTools.py @@ -27,7 +27,7 @@ class WSDLReader: wsdl = WSDL() if name: wsdl.location = name - else: + elif hasattr(file, 'name'): wsdl.location = file.name wsdl.load(document) return wsdl