schedule task if exception has occurred python
schedule task if exception has occurred python Question: my question is simple as the title suggest try: response = requests.get(URL2) # download the data behind the URL open(zipname, "wb").write(response.content) # Open the response into a new file # extract zip file to specified location with ZipFile(zipname, ‘r’) as zip_file: zip_file.extractall(path=path) os.remove(zipname) # removes the downloaded …