def run(self):
        self.sleep(5)   # give GUI time to initialize
        while True:
            try:
                f = urllib.urlopen(self.url)
                data = f.read()
                feed = json.loads(data)
                rate = feed
                for field in self.fields:
                    rate = rate[field]
                rate = float(rate)
                self.callback(rate, self.source)
            except (ValueError, __HOLE__):
                print "Warning: Unable to parse exchange rate ticker"
            except IOError:
                print "Warning: Unable to access exchange rate ticker"
            self.sleep(self.interval)
dataset/ETHPy150Open javgh/greenaddress-pos-tools/ticker.py/Ticker.run