mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
fixed exception handling for article to readme
This commit is contained in:
parent
d24988454e
commit
d2a9da1490
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user