diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 14:11:33 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 10:41:15 -0400 |
| commit | d7aee9421544aaff12fd4c26677085fd555d6728 (patch) | |
| tree | 649f18916fdcf4bda7c85cc37e4b49fb28efda3e /jasper.py | |
| parent | 52a30cae6fb11ceedfaa9cb252432a2801a2de6f (diff) | |
| download | jasper-client-d7aee9421544aaff12fd4c26677085fd555d6728.tar.gz jasper-client-d7aee9421544aaff12fd4c26677085fd555d6728.zip | |
Added test for vocabcompiler to `--light` tests and updated travis config
Diffstat (limited to 'jasper.py')
| -rwxr-xr-x | jasper.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -7,6 +7,7 @@ import traceback import shutil import yaml +from diagnose import Diagnostics from client import vocabcompiler, stt from client import speaker as speak from client.conversation import Conversation @@ -45,11 +46,9 @@ os.environ["PATH"] = path speaker = speak.newSpeaker() def testConnection(): - try: - urllib2.urlopen("http://www.google.com").getcode() + if Diagnostics.check_network_connection(): print "CONNECTED TO INTERNET" - - except urllib2.URLError: + else: print "COULD NOT CONNECT TO NETWORK" speaker.say( "Warning: I was unable to connect to a network. Parts of the system may not work correctly, depending on your setup.") |
