move into try block

This commit is contained in:
lededev
2021-10-12 11:42:30 +08:00
parent c0a4ce638c
commit f26987ddf9

View File

@@ -111,9 +111,9 @@ def getOutline(number): #获取剧情介绍 从avno1.cc取得
return browser.page.select('div.type_movie > div > ul > li:nth-child(1) > div')[0]['data-description'].strip() return browser.page.select('div.type_movie > div > ul > li:nth-child(1) > div')[0]['data-description'].strip()
except: except:
pass pass
from WebCrawler.xcity import open_by_browser, getOutline as xcity_getOutline
try: try:
detail_html, browser = open_by_browser(number_up) from WebCrawler.xcity import open_by_browser, getOutline as xcity_getOutline
detail_html, browser = open_by_browser(number)
return xcity_getOutline(detail_html) return xcity_getOutline(detail_html)
except: except:
pass pass