def get_data(self, ips, proc_num, return_dict): result = [] for ip in ips: location = self._database.get_location(Database.int2ip(ip)) result.append(self._get_main_information(location)) return_dict[proc_num] = result
def get_data(self, ips, proc_num, return_dict): result = [] for ip in ips: try: location = self._database.city(Database.int2ip(ip)) except AddressNotFoundError: location = None result.append(self._get_main_information(location)) return_dict[proc_num] = result