Should return 404 for api to handle

None can't be handled correctly by api.py
This commit is contained in:
biaji
2023-04-22 19:56:01 +08:00
committed by GitHub
parent 181672324e
commit 2152dd99e4

View File

@@ -85,7 +85,7 @@ class Parser:
else: else:
self.detailurl = self.queryNumberUrl(number) self.detailurl = self.queryNumberUrl(number)
if not self.detailurl: if not self.detailurl:
return None return 404
htmltree = self.getHtmlTree(self.detailurl) htmltree = self.getHtmlTree(self.detailurl)
result = self.dictformat(htmltree) result = self.dictformat(htmltree)
return result return result