Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- try:
- print('entering urlretrieve')
- # If connection failed after entering the function urllib.request.urlretrieve()
- urllib.request.urlretrieve('img_url','temp_location')
- print('exited urlretrieve')
- except:
- print('connection problem')
- print('program ended')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement