From 995cf5b0798c5a1230fabdebb6108a5fb15a7fca Mon Sep 17 00:00:00 2001 From: olf Date: Tue, 8 Sep 2015 23:10:19 +0200 Subject: bug: removed test url --- scripts/status_script.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/status_script.py') diff --git a/scripts/status_script.py b/scripts/status_script.py index 5de27f6..1686069 100755 --- a/scripts/status_script.py +++ b/scripts/status_script.py @@ -73,8 +73,7 @@ class SublabStatus(object): def fetch_state(self): if not self.json : try: - with urlopen('http://192.168.2.214:9000') as response: - #with contextlib.closing(urllib.urlopen('http://[2a02:238:f02a:9800:caa0:30ff:feb4:2185]/')) as response: + with urlopen('http://[2a02:238:f02a:9800:caa0:30ff:feb4:2185]/') as response: self.json = json.loads(response.readall().decode('utf-8')) except IOError: with urlopen('http://beaglebone.local.sublab.org/') as response: -- cgit v1.2.1