remove useless try blocks.

This commit is contained in:
Jason Schwarzenberger
2020-11-04 15:37:19 +13:00
parent 1318259d3d
commit 6ea9844d00
3 changed files with 14 additions and 23 deletions
+4 -7
View File
@@ -9,13 +9,10 @@ OUTLINE_API = 'https://api.outline.com/v3/parse_article'
TIMEOUT = 20
def get_html(url):
try:
details = get_details(url)
if not details:
return ''
return details['html']
except:
raise
details = get_details(url)
if not details:
return ''
return details['html']
def get_details(url):
try: