def download_comic(comic_url):
    file_name = comic_url.split('/')[(- 1)]
    new_file = open(((target_dir + '\\') + file_name), 'wb')
    get_comic = requests.get(comic_url)
    try:
        get_comic.raise_for_status()
        for chunk in get_comic.iter_content((10 ** 6)):
            new_file.write(chunk)
        new_file.close()
    except:
        (print('Bild-URL %s ist fehlerhaft') % comic_url)
def download_comic(comic_url):
    file_name = comic_url.split('/')[(- 1)]
    new_file = open(((target_dir + '\\') + file_name), 'wb')
    get_comic = requests.get(comic_url)
    try:
        get_comic.raise_for_status()
        for chunk in get_comic.iter_content((10 ** 6)):
            new_file.write(chunk)
        new_file.close()
    except:
        (print('Bild-URL %s ist fehlerhaft') % comic_url)