Skip to content

Conversation

@heri3x
Copy link

@heri3x heri3x commented Apr 22, 2023

I encountered an issue where the line "ip = self.device.get_ip_address()" was throwing a socket.gaierror exception and not being handled properly, causing the program to exit.

And I fixed this problem.

By the way, it seems that the socket.gaierror exception occurs in a Windows environment when a DNS suffix is set and the "Use this connection's DNS suffix in DNS registration" option is not checked in the network connection. Checking the "Use this connection's DNS suffix in DNS registration" option will prevent this issue from occurring.

Environment:

  • Windows 10
  • Python 3.9.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant