def getAddresses(self,type=None):
		fetchNewAssets=False
		if(self._lastFetch is not None):
			if(int(self._settings.baseServer_Recache) > (time.time()-self._lastFetch)):
				fetchNewAssets=True
		else:
			fetchNewAssets=True
		
		if(fetchNewAssets):
			try:
				self._lastFetch=time.time()
				self.log("Recaching")
				resp=requests.get(self._settings.baseServer_URL+"/addresses/?reader="+self._settings.baseServer_Reader,timeout=int(self._settings.baseServer_Timeout))
				self._addresses=resp.json()
				self.log("Finished recache.")
				self._nonDiscKeepScanning=False
			except Exception,error:
				self.log("Error rechaching addresses: "+str(error)+". Will retry on next recache.")
		
		if(type is None):	
			return self._addresses
		elif(type is "all"):
			return dict(self._addresses["ble"].items() + self._addresses["disc"].items()+self._addresses["nonDisc"].items())
		else:
			return self._addresses[type]
dataset/ETHPy150Open SteveAbb/Vestigo/Vestigo/scan.py/Scanner.getAddresses/swapped operands of `>`