From f0f30cade1af386803f59f3bf7343a74b97ea39c Mon Sep 17 00:00:00 2001 From: Gregory Warnes Date: Wed, 17 Dec 2003 22:18:32 +0000 Subject: [PATCH] - Fix problem when WSDL.Proxy was passed WSDL in a string or other object that does not have a 'name' attribute. --- WSDLTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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