diff --git a/examples/examples_gui.py b/examples/examples_gui.py index 2f97211..bd898ed 100644 --- a/examples/examples_gui.py +++ b/examples/examples_gui.py @@ -390,7 +390,8 @@ def on_service_name_change(self, index, value, op): # just ignore incomplete entries. return # We got info, so use the info to set *other* fields: - self.fields['host'].set(info['server']) + self.fields['host'].set(info['server'].rstrip(".")) + # ^ Remove trailing "." to prevent getaddrinfo failed. self.fields['port'].set(info['port']) self.set_status("Hostname & Port have been set ({server}:{port})" .format(**info))