amoghrajesh commented on code in PR #799:
URL: https://github.com/apache/airflow-site/pull/799#discussion_r1226440500
##########
post-docs/add-back-references.py:
##########
@@ -40,11 +41,14 @@ class GenerationType(enum.Enum):
def download_file(url):
- filedata = urlopen(url)
- datatowrite = filedata.read()
+ try:
+ filedata = urlopen(url)
+ datatowrite = filedata.read()
- with open('redirects.txt', 'wb') as f:
- f.write(datatowrite)
+ with open('redirects.txt', 'wb') as f:
+ f.write(datatowrite)
+ except URLError as e:
+ log.warning(e)
Review Comment:
Very good point. Will handle these points soon and re request for review :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]