In Python 3.8.2 I download files with:
import urllib.request
urllib.request.urlretrieve(url_address, file_name)
How can I check if file on url_address is downloadable without downloading it? I tried with try statement. It only raises Error when it can't download files, but it always downloads when the file from a given URL address is downloadable.