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
+5 -8
View File
@@ -9,14 +9,11 @@ TIMEOUT = 30
def get_html(url):
try:
logging.info(f"Declutter Scraper: {url}")
details = get_details(url)
if not details:
return ''
return details['content']
except:
raise
logging.info(f"Declutter Scraper: {url}")
details = get_details(url)
if not details:
return ''
return details['content']
def get_details(url):
try: