fixed exception handling for article to readme

This commit is contained in:
aliabd 2021-02-15 11:54:28 -08:00
parent d24988454e
commit d2a9da1490

View File

@ -66,6 +66,6 @@ def readme_to_html(article):
response = requests.get(article)
if response.status_code == requests.codes.ok:
article = response.text
except requests.exceptions.MissingSchema:
except requests.exceptions.RequestException:
pass
return article