For some reason, 

```
result = pool.map(_delete_load_log,list(logs_to_delete))

```

is now giving me an 'int' object is not iterable error.

as per the screenshot, logs\_to\_delete is clearly an array (added list() to see if it changed anything, and nope). This worked earlier, but I can't track back what changed to make it not work. Any ideas?

[![enter image description here](https://i.stack.imgur.com/3WqQV.png)](https://i.stack.imgur.com/3WqQV.png)

mapping function:

```
def _delete_load_log(load_log_id):
    logging.debug('** STARTING API CALL FOR: ' + get_function_name())
    input_args = "/15/" + str(load_log_id)
    logging.debug('url: ' + podium_url + '\nusername: ' + podium_username)

    podium = podiumapi.Podium('https://xx/podium','podium','podium')
    #podium = podiumapi.Podium(podium_url,podium_username,podium_password)
    data = None
    response_code = 0
    try:
        api_url = PodiumApiUrl(podium_url,input_args)

        (response_code,data) = podium._podium_curl_setopt_put(api_url)
        if not data[0]['hasErrors']:
            return data[0]['id']
        elif data[0]['hasErrors']:
            raise Exception("Errors detected on delete")
        else:
            raise Exception('Unmanaged exception while retrieving entity load status.')
    except Exception as err:
        raise Exception(str(err))

```

---

```
File "c:\Repos\Tools\podium-dataload\scripts\podiumlogdelete.py", line 69, in _delete_source_load_logs_gte_epoch
    deleted_load_ids = _delete_logs_in_parallel(load_logs_to_delete)
  File "c:\Repos\Tools\podium-dataload\scripts\podiumlogdelete.py", line 85, in _delete_logs_in_parallel
    result = pool.map(_delete_load_log,logs_to_delete)
  File "C:\Python27\lib\multiprocessing\pool.py", line 253, in map
    return self.map_async(func, iterable, chunksize).get()
  File "C:\Python27\lib\multiprocessing\pool.py", line 572, in get
    raise self._value
Exception: 'int' object is not iterable

```

output of list:

[154840, 154841, 154842, 154843, 154844, 154845, 154846, 154847, 154848, 154849, 154850, 154851, 154852, 154853, 154854, 154855, 154856, 154857, 154858, 154859, 154860, 154861, 154862, 154863, 154864, 154865, 154866, 154867, 154868, 154869, 154870, 154871, 154872, 154873, 154874, 154875, 154876, 154877, 154878, 154879, 154880, 154881, 154882, 154883, 154884, 154885, 154886, 154887, 154888, 154889, 154890, 154891, 154892, 154893, 154894, 154895, 154896, 154897, 154898, 154899, 154900, 154901, 154902, 154903, 154904, 154905, 154906, 154907, 154908, 154909, 154910, 154911, 154912, 154913, 154914, 154915, 154916, 154917, 154918, 154919, 154920, 154921, 154922, 154923, 154924, 154925, 154926, 154927, 154928, 154929, 154930, 154931, 154932, 154933, 154934, 154935, 154936, 154937, 154938, 154939]