Fix source output 'list out of range'
This commit is contained in:
@@ -18,7 +18,9 @@ def main(number: str) -> json:
|
||||
|
||||
if not soup.select_one("#moviepages > div > div:nth-child(1) > div.movie-info.section"):
|
||||
raise ValueError("page info not found")
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
return json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'))
|
||||
dic = {
|
||||
|
||||
Reference in New Issue
Block a user