Merge pull request #157 from sustefil/fix-issue-156

Fix generator.py:download_to_file
pull/160/head
Alexandre Dulaunoy 2020-08-05 10:38:56 +02:00 committed by GitHub
commit fa350ba446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def download_to_file(url, file):
if(url_datetime > file_datetime):
actual_download_to_file(url, file, user_agent)
except KeyError as ex:
except (KeyError, FileNotFoundError) as ex:
logging.warning(str(ex))
actual_download_to_file(url, file, user_agent)