Why does the program stop?

Hello, make a script to licania first posts of people.
for a in loxu:
 post bot.wall.get(owner_id=a, count=1)['items'][0]['id'] # get the entry
 bot.likes.add(owner_id=a, item_id=post type='post') # likem it
 print(a) # give the id of the person "handled"
 except: # to hide the user page the script is not stopped

In the variable loxu contains the list of 1000 integers.
Question: why after running for id 1164670 the script stops? He seems to be still running, but does nothing.
April 19th 20 at 12:28
1 answer
April 19th 20 at 12:30
If you didn't intercept all exceptions, you would know why.

Find more questions by tags VKontaktePython