Determine whether or not my PC is connected to the internet.
The Attempt
Using Ping plugin, attempt to ping http://www.google.com. Fire GOOGLE_IS_ALIVE on success, GOOGLE_IS_DEAD on failure.
The Problem
Works just fine on a successful ping, but on a failure get the following...
Code: Select all
Error in Action: "Ping: One Ping Now: www.google.com"
Traceback (most recent call last) (1610):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\Ping\_init_.py", line 132, in _call_
result = pyPing.Ping(dummyEvent)
File "C:\Program Files (x86)\EventGhost\plugins\Ping\_init_.py", line 549, in Ping
self.SendOnePing()
File "C:\Progrm Files (x86)\EventGhost\plugins\Ping\_init_.py", line 508, in SendOnePing
dest_addr = socket.gethostbyname(self.hostName)
gaierror: [Errno 11004] getaddrinfo failed