def run(self): # just to see the waiting interface... time.sleep(1.0) if self.url.scheme() == 'numpy': self.data = numpy.load(self.url.file_path()) else: self.data = get_data(self.url)
def run(self): try: self.data = get_data(self.url) except IOError: self.data = None