Skip to content

Commit

Permalink
fixed a bug with wsdl_hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
rancavil committed Feb 5, 2014
1 parent 4b66430 commit c9f122f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornadows/soaphandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get(self):
""" Method get() returned the WSDL. If wsdl_path is null, the
WSDL is generated dinamically.
"""
if type(options.wsdl_hostname) is str:
if hasattr(options,'wsdl_hostname') and type(options.wsdl_hostname) is str:
address = options.wsdl_hostname
else:
address = getattr(self, 'targetns_address',tornado.httpserver.socket.gethostbyname(tornado.httpserver.socket.gethostname()))
Expand Down

0 comments on commit c9f122f

Please sign in to comment.